Archived

This topic is now archived and is closed to further replies.

caesar4

need emergency help with DS notifiers

Recommended Posts

i''m trying to create an ogg vorbis directsound implementation, but when i try to create the notifier, i get an error i''m running DX9b on win98 SE, SoundBlaster Live 5.1, VC++ the error occurs when i query for the notifier interface lpDSB8->QueryInterface(IID_IDirectSoundNotify8,(LPVOID *)&(lpNot)); returns HR: 80004002 Error: E_NOINTERFACE Description:The requested COM interface is not available i have tried restarting, seting the dsound debug output to max any suggestions??

Share this post


Link to post
Share on other sites
Guest Anonymous Poster

LPDIRECTSOUNDBUFFER dsb;
LPDIRECTSOUNDBUFFER8 dsb8;
LPDIRECTSOUNDNOTIFY8 dsn8;

dsb->QueryInterface(IID_IDirectSoundBuffer8, (LPVOID*)&dsb8);
dsb8->QueryInterface(IID_IDirectSoundNotify8, (LPVOID*)&dsn8);

Share this post


Link to post
Share on other sites
that is pretty much how i do it, i even put CoInitialize() at the start of my program and still get the same error


never mind, error was that i forgot to include DSBCAPS_CTRLPOSITIONNOTIFY flag when creating the buffer

so for anyone planning to work on streaming, DONT FORGET

DSBCAPS_CTRLPOSITIONNOTIFY




[edited by - caesar4 on March 28, 2004 1:39:06 AM]

Share this post


Link to post
Share on other sites