Click here to Skip to main content
15,921,636 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tooltips for combo Pin
hou_12628-Oct-04 22:38
hou_12628-Oct-04 22:38 
Generalinstall Pin
hou_12628-Oct-04 22:03
hou_12628-Oct-04 22:03 
GeneralRe: install Pin
Arsalan Malik28-Oct-04 23:13
Arsalan Malik28-Oct-04 23:13 
GeneralRe: install Pin
ThatsAlok29-Oct-04 0:03
ThatsAlok29-Oct-04 0:03 
GeneralBrowser Control performance Issue Pin
nabil_shams28-Oct-04 21:47
nabil_shams28-Oct-04 21:47 
GeneralRe: Browser Control performance Issue Pin
Sujan Christo29-Oct-04 1:10
Sujan Christo29-Oct-04 1:10 
Generalaudio - waveInPrepareHeader() problem Pin
normanS28-Oct-04 21:46
normanS28-Oct-04 21:46 
GeneralRe: audio - waveInPrepareHeader() problem Pin
Blake Miller29-Oct-04 4:54
Blake Miller29-Oct-04 4:54 
You should only have one or two buffers prepared at any given time.
Then when you respond to the callbacks, you give the MM system the next buffer, calling waveInUnprepareHeader on the buffer it just finished using. So by double or triple buffering the data, you are allowing the multimedia to fill one while you are preparing another, and you unprepare the one it just finished filling. I think you are overflowing some internal buffer that can only handle up to 300 prepared headers at a time.

something like this:
prepare 3 headers and feed the MM system the first buffer
when it calls back and says it has filled it, give it second, and COPY the data from your first buffer to your own local storage
when it has filled second buffer, give it your thrid, etc.
repeat cycle until your waveform sampling is complete

I found this all works best from a thread that can handle the events from the mm system instead of doing it frojw ith the same thread, then I can copy the data out of a buffer and 'reprepare' that buffer while the MM system is busy sampling, instead of being blocked waiting for a sample buffer to fill.

GeneralRe: audio - waveInPrepareHeader() problem Pin
Anonymous29-Oct-04 19:06
Anonymous29-Oct-04 19:06 
GeneralRe: audio - waveInPrepareHeader() problem Pin
Blake Miller1-Nov-04 4:09
Blake Miller1-Nov-04 4:09 
GeneralReply to Oliv Pin
normanS31-Oct-04 20:51
normanS31-Oct-04 20:51 
GeneralAbout "SHChangeNotifyRegister" Pin
Na_Su28-Oct-04 21:37
Na_Su28-Oct-04 21:37 
GeneralRe: About "SHChangeNotifyRegister" Pin
Blake Miller29-Oct-04 5:02
Blake Miller29-Oct-04 5:02 
QuestionHow to add a response file to the project dependencies? Pin
AlxZ28-Oct-04 20:47
AlxZ28-Oct-04 20:47 
GeneralWindows Media Format SDK IWMSyncReader Problem Pin
ytod28-Oct-04 15:54
ytod28-Oct-04 15:54 
GeneralRe: Windows Media Format SDK IWMSyncReader Problem Pin
aasikRaja7-Oct-12 23:20
aasikRaja7-Oct-12 23:20 
GeneralCPreviewWnd Pin
BaldwinMartin28-Oct-04 11:20
BaldwinMartin28-Oct-04 11:20 
GeneralAccessing to keyb controller from C++ Pin
ninjanear28-Oct-04 10:59
professionalninjanear28-Oct-04 10:59 
GeneralAdding a button to a Tab Control Pin
RobJones28-Oct-04 10:42
RobJones28-Oct-04 10:42 
Generalabout device instance enumeration Pin
momer28-Oct-04 9:21
momer28-Oct-04 9:21 
GeneralRe: about device instance enumeration Pin
Ryan Binns28-Oct-04 18:21
Ryan Binns28-Oct-04 18:21 
GeneralApplication Help for an MFC application Pin
digwizfox28-Oct-04 8:24
digwizfox28-Oct-04 8:24 
GeneralRe: Application Help for an MFC application Pin
pubududilena28-Oct-04 17:37
pubududilena28-Oct-04 17:37 
Generaldialog based mfc app Pin
sv4228-Oct-04 7:48
sv4228-Oct-04 7:48 
GeneralRe: dialog based mfc app Pin
NOMAN KOUSAR28-Oct-04 10:01
sussNOMAN KOUSAR28-Oct-04 10: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.