I did it... still doesn't seem to be working....
I did this:
Code:
//attempt to load the wave file
result = dsound->Create(&wave, (LPTSTR)filename);
if(result != DS_OK)return NULL;
Code:
HRESULT Create( CSound** ppSound, LPTSTR strWaveFileName, DWORD dwCreationFlags = 0, GUID guid3DAlgorithm = GUID_NULL, DWORD dwNumBuffers = 1 );
That's the proto of Create so I don't see the problem.
Hmmm... searched around a bit, and it seems DirectSound is obsolete... this might be the problem, it might be calling for audio libraries that don't exist. I think I might just go ahead and use OpenAL or something and screw this chapter on sound... it was explained that well anyway. >_<