Looping Streamed Audio Using WaveOut



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
.



Relevant Pages

  • Re: Looping Streamed Audio Using WaveOut
    ... > audio data to the waveoutwrite function and play audio fine. ... > am having now is that when I try and loop the data using the dwFlags, ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: Newbie questions
    ... things with audio .WAV tracts such as make Pan and Gain envelopes. ... drag the mouse over the section I want and play the loop but how do I ... of the material on a timeline and copy it as many times as you wish. ... including having separate audio and video tracks. ...
    (rec.video.desktop)
  • Re: which 64 bit Linux distro for best OS/2 eCS compatibility?
    ... If you are having loops in the sound (when audio is played). ... because of the loop and because the irqstat/acpistat doesn't show any ... If there is a developer, ...
    (comp.os.os2.misc)
  • Re: Newbie questions
    ... things with audio .WAV tracts such as make Pan and Gain envelopes. ... drag the mouse over the section I want and play the loop but how do I ... of the material on a timeline and copy it as many times as you wish. ...   Your NLE has some easy way of breaking the association of tracks ...
    (rec.video.desktop)
  • [SLE] DVD Permissions -How to Fix and make it stick?
    ... When I first install SuSE, the DVD player works fine to play audio CD's using KsCD. ... But it seems like anytime I install, change preferences, or configuration for any audio or video apps the stupid thing won't play audio CD's anymore. ...
    (SuSE)

Loading