Click here to Skip to main content
16,004,507 members
Home / Discussions / C#
   

C#

 
AnswerRe: always selected Listview item Pin
Mycroft Holmes29-Aug-09 15:24
professionalMycroft Holmes29-Aug-09 15:24 
Questionhide & Show a Listview Column Pin
Jassim Rahma29-Aug-09 9:38
Jassim Rahma29-Aug-09 9:38 
AnswerRe: hide & Show a Listview Column Pin
Abhishek Sur29-Aug-09 10:56
professionalAbhishek Sur29-Aug-09 10:56 
AnswerRe: hide & Show a Listview Column Pin
Dave Kreskowiak29-Aug-09 11:52
mveDave Kreskowiak29-Aug-09 11:52 
Questionfind all available emails under a domain name Pin
Jassim Rahma29-Aug-09 9:37
Jassim Rahma29-Aug-09 9:37 
AnswerRe: find all available emails under a domain name Pin
Manas Bhardwaj29-Aug-09 10:31
professionalManas Bhardwaj29-Aug-09 10:31 
AnswerRe: find all available emails under a domain name Pin
Dave Kreskowiak29-Aug-09 11:51
mveDave Kreskowiak29-Aug-09 11:51 
Questioncreating a circular array Pin
Steve1_rm29-Aug-09 8:30
Steve1_rm29-Aug-09 8:30 
Hello,

VS 2008

I am filling the buffer with the read method in the code below, using SlimDX to capture the audio input from the microphone.

The problem I have is that the buffer will overrun. It there anyway to create a circuler buffer that once it gets to the the end it will start over again?

Many thanks for any suggestions,

private void bgwAudioInput_DoWork(object sender, DoWorkEventArgs e)
        {
            Int16[] samples = new Int16[8192 / sizeof(Int16)];
            Int16 audioValue = 0;
            int i = 0;
            captureBuff.Start(true);
          
            while (captureAudio)
            {
                if (!this.bgwAudioInput.CancellationPending)
                {
                    captureBuff.Read(samples, 0, true);
                    audioValue = Math.Abs(samples[i++]);
                    this.bgwAudioInput.ReportProgress(audioValue);
                }
            }
}

AnswerRe: creating a circular array Pin
Alan N29-Aug-09 9:06
Alan N29-Aug-09 9:06 
AnswerRe: creating a circular array Pin
harold aptroot29-Aug-09 9:13
harold aptroot29-Aug-09 9:13 
QuestionTake data from a website and display in a program. Pin
malcomhfc29-Aug-09 7:14
malcomhfc29-Aug-09 7:14 
AnswerRe: Take data from a website and display in a program. Pin
Luc Pattyn29-Aug-09 8:14
sitebuilderLuc Pattyn29-Aug-09 8:14 
GeneralRe: Take data from a website and display in a program. Pin
malcomhfc29-Aug-09 8:42
malcomhfc29-Aug-09 8:42 
GeneralRe: Take data from a website and display in a program. Pin
Luc Pattyn29-Aug-09 9:00
sitebuilderLuc Pattyn29-Aug-09 9:00 
GeneralRe: Take data from a website and display in a program. Pin
malcomhfc29-Aug-09 9:09
malcomhfc29-Aug-09 9:09 
GeneralRe: Take data from a website and display in a program. Pin
Luc Pattyn29-Aug-09 9:10
sitebuilderLuc Pattyn29-Aug-09 9:10 
AnswerRe: Take data from a website and display in a program. Pin
Gindi Bar Yahav30-Aug-09 11:45
Gindi Bar Yahav30-Aug-09 11:45 
QuestionHow to show the characters of a text box in which its PasswordCharacter is set to '*'? Pin
CoderForEver29-Aug-09 5:11
CoderForEver29-Aug-09 5:11 
AnswerRe: How to show the characters of a text box in which its PasswordCharacter is set to '*'? Pin
OriginalGriff29-Aug-09 5:38
mveOriginalGriff29-Aug-09 5:38 
Questionhow to restrict users from setting focus to multiple cells in DataGridView ? Pin
alladeen29-Aug-09 5:05
alladeen29-Aug-09 5:05 
AnswerRe: how to restrict users from setting focus to multiple cells in DataGridView ? Pin
Henry Minute29-Aug-09 7:51
Henry Minute29-Aug-09 7:51 
Questionprint a image and text without using printer driver. using C#.NET Pin
shaktisinh29-Aug-09 3:57
shaktisinh29-Aug-09 3:57 
AnswerRe: print a image and text without using printer driver. using C#.NET Pin
Dave Kreskowiak29-Aug-09 5:47
mveDave Kreskowiak29-Aug-09 5:47 
GeneralRe: print a image and text without using printer driver. using C#.NET Pin
shaktisinh30-Aug-09 23:54
shaktisinh30-Aug-09 23:54 
GeneralRe: print a image and text without using printer driver. using C#.NET Pin
Dave Kreskowiak31-Aug-09 1:01
mveDave Kreskowiak31-Aug-09 1:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.