Looping Streamed Audio Using WaveOut
- From: Ben <cinele@xxxxxxxxxxxxxxxx>
- Date: Mon, 25 Jul 2005 14:21:02 -0700
I am using VC++.net on winXP. So far I have been able to pass blocks of
audio data to the waveoutwrite function and play audio fine. The problem I
am having now is that when I try and loop the data using the dwFlags, it
plays the first block, and then loops it forever. If I set both the
WHDR_BeginLoop and EndLoop flags for the same block, it loops the block the
set amount of times I specify. I have looked on MSDN and found this page
that describes how to loop streamed
audio(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcewave/html/_wcesdk_looping_playback.asp),
but it seems that it is not letting me pass more audio blocks to the
waveoutwrite function after I set the WHDR_BeginLoop dwFlag before it starts
looping. Any Suggestions?
--
Ben
Here is some of my code
.
- Follow-Ups:
- Re: Looping Streamed Audio Using WaveOut
- From: Chris P. [MVP]
- Re: Looping Streamed Audio Using WaveOut
- Prev by Date: Re: Make multiple avi files in one run
- Next by Date: Re: Looping Streamed Audio Using WaveOut
- Previous by thread: Programming Microsoft DirectShow for digital video
- Next by thread: Re: Looping Streamed Audio Using WaveOut
- Index(es):
Relevant Pages
|
Loading