static LPDIRECTSOUND8 lpDS; //this is a pointer to the DirectSound Object
static HWND hMainWnd; //handle to your programs main window
//////////////////////////////////////////////////////////////////////
//Then the following:
if (DS_OK==DirectSoundCreate8(NULL,&lpDS,NULL)) //create direct sound object
{
lpDS->Initialize(NULL);
// Set CoOp level here
HRESULT coopStatus = lpDS->SetCooperativeLevel(hMainWnd, DSSCL_PRIORITY);
//error handling stuff here
}
November 2008 DXSDK - DirectSound
Hi guys,
Just started playing with direct sound today. I created the device as directed but keep recieving E_INVALID ARGS when I call SetCooperativeLevel().
Is there any way to find which of the arguments is invalid or even why?
I speculate that because Im using the new SDK, MS are trying to get us using XACT/XAudio2 but neither support microphones so the option isnt there for me.
Besides the methods are still in the header files etc..
I am using Vista with an on board creative card.
Any Ideas?
Does or did it work with an earlier SDK? Can you revert to an earlier SDK if it helps? If it does work, you might want to let Microsoft know, it might be a bug.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement