Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionOrder Pin
messages20-Oct-13 4:08
messages20-Oct-13 4:08 
QuestionRe: Order Pin
David Crow20-Oct-13 16:05
David Crow20-Oct-13 16:05 
AnswerRe: Order Pin
messages21-Oct-13 3:07
messages21-Oct-13 3:07 
AnswerRe: Order Pin
Ron Beyer20-Oct-13 17:15
professionalRon Beyer20-Oct-13 17:15 
GeneralRe: Order Pin
messages21-Oct-13 3:08
messages21-Oct-13 3:08 
GeneralRe: Order Pin
Ron Beyer21-Oct-13 4:57
professionalRon Beyer21-Oct-13 4:57 
AnswerRe: Order Pin
rashin ghodratzade27-Oct-13 22:24
rashin ghodratzade27-Oct-13 22:24 
QuestionHow to catch wave API WHDR_DONE flag? Pin
Vaclav_19-Oct-13 4:41
Vaclav_19-Oct-13 4:41 
Hello gurus,

I have posted few questions here basically pussyfooting around the real issue and hoping to learn more about Windows events in the process. So this is almost a re-post. Sorry.

The real issue is with waveOutWrite and assertion of the header flags _ particularity the “loop” WHDR_DONE flag.

I can use event but have no idea how it actually works.

I just cannot believe that the only “option” is plain while / do time wasting loop.
I am looking for this flag to signal end of audio in a few seconds, so I feel doing while loop for such long time is really goofy.

while((pcm[i].whdr.dwFlags & 1) != 1)
{
TRACE("\nWaiting.. %i ",mSeconds );
;
}

I am open to any other solution.

Thanks for your help.
Cheers
Vaclav
QuestionRe: How to catch wave API WHDR_DONE flag? Pin
David Crow19-Oct-13 16:36
David Crow19-Oct-13 16:36 
AnswerRe: How to catch wave API WHDR_DONE flag? SOLVED with timer and while loop Pin
Vaclav_20-Oct-13 5:29
Vaclav_20-Oct-13 5:29 
GeneralRe: How to catch wave API WHDR_DONE flag? SOLVED with timer and while loop Pin
David Crow20-Oct-13 16:02
David Crow20-Oct-13 16:02 
Questionsystem call mknod() failing with errno 2 on ubuntu Pin
SunilKrSingh19-Oct-13 1:04
SunilKrSingh19-Oct-13 1:04 
AnswerRe: system call mknod() failing with errno 2 on ubuntu Pin
Richard MacCutchan19-Oct-13 2:34
mveRichard MacCutchan19-Oct-13 2:34 
NewsBeginning WPF 4.5 by Full Example (EPUB) Pin
Stephen. P .Thomas19-Oct-13 0:09
Stephen. P .Thomas19-Oct-13 0:09 
QuestionWait for event versus while / do loop or timer – academic questions Pin
Vaclav_18-Oct-13 12:55
Vaclav_18-Oct-13 12:55 
AnswerRe: Wait for event versus while / do loop or timer – academic questions Pin
Richard Andrew x6418-Oct-13 13:31
professionalRichard Andrew x6418-Oct-13 13:31 
AnswerRe: Wait for event versus while / do loop or timer – academic questions Pin
digitalspace.xjtu18-Oct-13 16:46
digitalspace.xjtu18-Oct-13 16:46 
AnswerRe: Wait for event versus while / do loop or timer – academic questions Pin
pasztorpisti19-Oct-13 4:30
pasztorpisti19-Oct-13 4:30 
GeneralRe: Wait for event versus while / do loop or timer – academic questions Pin
Vaclav_19-Oct-13 6:29
Vaclav_19-Oct-13 6:29 
GeneralRe: Wait for event versus while / do loop or timer – academic questions Pin
pasztorpisti19-Oct-13 7:22
pasztorpisti19-Oct-13 7:22 
AnswerRe: Wait for event versus while / do loop or timer – academic questions Pin
David Crow19-Oct-13 16:43
David Crow19-Oct-13 16:43 
GeneralRe: Wait for event versus while / do loop or timer – academic questions SOLVED Pin
Vaclav_20-Oct-13 5:33
Vaclav_20-Oct-13 5:33 
Questionrtp server using ffmpeg in VC++ Pin
CodingHell18-Oct-13 2:39
CodingHell18-Oct-13 2:39 
AnswerRe: rtp server using ffmpeg in VC++ Pin
PCuong198322-Oct-13 5:20
professionalPCuong198322-Oct-13 5:20 
GeneralRe: rtp server using ffmpeg in VC++ Pin
CodingHell22-Oct-13 18:45
CodingHell22-Oct-13 18:45 

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.