Hi all,
I'm new to directx programming and am trying to learn how to use directsound. For starters I want to enumerate the sound devices so I use the DirectSoundEnumerate function.
I created a simple callback function (that does nothing). I get the following error (code listed afterwards):
Code:
error C3867: 'CAud4App::DSEnumProc': function call missing argument list; use '&CAud4App::DSEnumProc' to create a pointer to member
on the following line:
Code:
DirectSoundEnumerate(DSEnumProc,(void*)NULL);
DSEnumProc is:
Code:
BOOL CALLBACK DSEnumProc(LPGUID lpGUID,
LPCTSTR lpszDesc,
LPCTSTR lpszDrvName,
LPVOID lpContext )
Can anyone explain what I am doing wrong? Thanks