Click here to Skip to main content
16,011,170 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: pass variable between dialogs Pin
Roger Stoltz24-Mar-06 4:53
Roger Stoltz24-Mar-06 4:53 
GeneralRe: pass variable between dialogs Pin
viperlogic24-Mar-06 5:06
viperlogic24-Mar-06 5:06 
GeneralRe: pass variable between dialogs Pin
Waldermort24-Mar-06 13:08
Waldermort24-Mar-06 13:08 
AnswerRe: pass variable between dialogs Pin
toxcct25-Mar-06 5:01
toxcct25-Mar-06 5:01 
QuestionCold fusion accessing a C++ dll Pin
LCI24-Mar-06 4:10
LCI24-Mar-06 4:10 
QuestionTime management Pin
PRSFerreira24-Mar-06 4:09
PRSFerreira24-Mar-06 4:09 
AnswerRe: Time management Pin
toxcct24-Mar-06 4:17
toxcct24-Mar-06 4:17 
QuestionProblem with wave audio input device Pin
Remco Hoogenboezem24-Mar-06 3:42
Remco Hoogenboezem24-Mar-06 3:42 
Hello everybody,

A week ago or so I have posted a message with the same title. I have solved this problem. But now I ve got a new one. I do the following:

Start recording with the wave audio input device.
Using the function waveInStart()

During recording all waveheaders that are returned to the application are processed and added to the wave audio input device again.
Using the function waveInAddBuffer()

Driver messages are processed using a dedicated thread. (Using the flag CALLBACK_THREAD in the function waveInOpen)

After recording for a while the recording is stopped.
Using the function waveInStop()

Now I need to mark the last waveheader with a time stamp. Before I stop the wave audio input device I query the current sample
using the function waveInGetPosition() (All waveheaders are of the same size)

dwLastWaveHeader=(dwCurrentSample-1)/nSamplesInEachWaveHeader;

Oke this works. But in some very very rare cases the current data record is not returned to the application. (Happens when the current buffer is only filled for say 200 samples and less)

My question is how to make sure that the current buffer is returned to the application? Smile | :)

Thank you

AnswerRe: Problem with wave audio input device Pin
Blake Miller24-Mar-06 11:11
Blake Miller24-Mar-06 11:11 
GeneralRe: Problem with wave audio input device Pin
Remco Hoogenboezem24-Mar-06 12:13
Remco Hoogenboezem24-Mar-06 12:13 
QuestionChinese characters Pin
Mortie4224-Mar-06 2:57
Mortie4224-Mar-06 2:57 
AnswerRe: Chinese characters Pin
Waldermort24-Mar-06 4:13
Waldermort24-Mar-06 4:13 
AnswerRe: Chinese characters Pin
Michael Dunn24-Mar-06 7:00
sitebuilderMichael Dunn24-Mar-06 7:00 
GeneralRe: Chinese characters Pin
Mortie4224-Mar-06 8:18
Mortie4224-Mar-06 8:18 
GeneralRe: Chinese characters Pin
Michael Dunn24-Mar-06 8:49
sitebuilderMichael Dunn24-Mar-06 8:49 
GeneralRe: Chinese characters Pin
Mortie4224-Mar-06 10:11
Mortie4224-Mar-06 10:11 
GeneralRe: Chinese characters Pin
Michael Dunn24-Mar-06 10:38
sitebuilderMichael Dunn24-Mar-06 10:38 
GeneralRe: Chinese characters Pin
Mortie4224-Mar-06 11:07
Mortie4224-Mar-06 11:07 
GeneralRe: Chinese characters Pin
Michael Dunn24-Mar-06 11:32
sitebuilderMichael Dunn24-Mar-06 11:32 
GeneralRe: Chinese characters Pin
Mortie4224-Mar-06 11:48
Mortie4224-Mar-06 11:48 
GeneralRe: Chinese characters Pin
Michael Dunn24-Mar-06 12:56
sitebuilderMichael Dunn24-Mar-06 12:56 
GeneralRe: Chinese characters Pin
Waldermort24-Mar-06 13:19
Waldermort24-Mar-06 13:19 
GeneralRe: Chinese characters Pin
Mortie4225-Mar-06 8:01
Mortie4225-Mar-06 8:01 
GeneralRe: Chinese characters Pin
Mortie4225-Mar-06 7:56
Mortie4225-Mar-06 7:56 
GeneralRe: Chinese characters Pin
Sheng Jiang 蒋晟25-Mar-06 17:10
Sheng Jiang 蒋晟25-Mar-06 17:10 

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.