[directmusic] Re: StopEx of AudioPath

  • From: "Todor Fay" <todor@xxxxxxxxxxxxx>
  • To: <directmusic@xxxxxxxxxxxxx>
  • Date: Mon, 18 Nov 2002 13:46:46 -0800

I just tried it and verified that it does indeed work. But, if there is
nothing playing on the AudioPath, it returns that error, which is
misleading. 

So, the functionality is correct, but the return code is probably wrong
(I haven't looked at the docs to see if it is intended.) 

Todor

-----Original Message-----
From: directmusic-bounce@xxxxxxxxxxxxx
[mailto:directmusic-bounce@xxxxxxxxxxxxx] On Behalf Of David Cottrell
Sent: Monday, November 18, 2002 11:31 AM
To: directmusic@xxxxxxxxxxxxx
Subject: [directmusic] StopEx of AudioPath


(I posted this to directx.audio but didn't get any response.  Anyone
here
tried this?

Hi.  Has anyone had any problems with the performance's StopEx method
when passing in an audiopath?  I can call with NULL or a segment just
fine, but when trying to stop all audio on an audiopath I get
0x80070057 (Invalid Parm).  I've searched around and haven't seen
anyone making use of the audiopath stopex.  Do I simply have my syntax
wrong?  Thanks much!

-David

// Heres the audio path I've created.  Nothing unusual here
hr = m_pPerformance->CreateStandardAudioPath(
 DMUS_APATH_DYNAMIC_STEREO,
 128, 
 TRUE,
 &xMusicAudioPath);

..... PlaySegmentEx on xMusicAudioPath .....

// Try to stop all segments on this audiopath
hr = m_pPerformance->StopEx(
  xMusicAudioPath,
  0,
  0);
assert(SUCCEEDED(hr));  // Gives me 0x80070057 



__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com


Other related posts: