[directmusic] Why can't I get MIXIN_BUFFER interfaces?

  • From: "Andrew Clark" <andrewclarkis@xxxxxxxxxxx>
  • To: directmusic@xxxxxxxxxxxxx
  • Date: Fri, 27 Sep 2002 15:53:09 -0400

Hey gang! Another DX8.1 API question for the c++ gurus.

I don't seem to be able to get MIXIN_BUFFER interfaces with 
pAudiopath->GetObjectInPath().  Here is the audiopath I'm trying to use:

Audiopath Designer:

Mix Group       Bus     Buffer                  Effects List
Shared Verb---- None    User Defined (shared)   I3DL2Reverb2
Shared Echo---- None    User Defined (shared)   Echo1 | Send(Shared Verb)
1: Mix Group--- Stereo  User Defined            Custom DMO | Send (Shared Verb) 
| Send 
(Shared Echo)

I can get an interface to my custom DMO no problem with 
GetObjectInPath(DMUS_PATH_BUFFER_DMO), but try as I might I can't get an 
interface to the Echo1 DMO with DMUS_PATH_MIXIN_BUFFER_DMO.  As a matter of 
fact, I can't even get an IDirectSoundBUffer interface with 
DMUS_PATH_MIXIN_BUFFER.

Does anyone have any idea what might be going on? (Is it because I have the 
buffer flagged as shared between audiopaths?)

Cheers,
Andrew

--------------------------------------------------------

sample code that doesn't work:

IDirectSoundBuffer* pBuff = NULL;

if(SUCCEEDED(hr = pAudioPath->GetObjectInPath(DMUS_PCHANNEL_ALL,
        DMUS_PATH_MIXIN_BUFFER, i,
        GUID_NULL, 0, IID_IDirectSoundBuffer,
        (LPVOID*) &pBuff)))
{
        Log("For some reason this never happens.");
}


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


Other related posts: