Advertisement Jump to content


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


DirectSound problems.....

This topic is 6884 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to add DirectSound to my game, but it is about 1000000x as hard as DirectDraw or DirectInput. I did a lot of cut and paste from their dsutil.h and .cc and put in some of my own and other MS code. Here''s one of my problems... IDirectSoundBuffer_SetPan(pDSB, (LONG)((20000.0 * ((x) / 320.0) - 10000.0)); This line of code gives me an unexpected EOF while doing a macro... Any clues? Another one: f:\bensc++\dxgamev1.0\winmain.cpp(807) : error C2039: ''lpVtbl'' : is not a member of ''IDirectSound'' This is a compile error. This never seems to give ''donuts'' a problem, because this is a DIRECT cut and paste from it. Any help here? More questions later... -Ben Dilts

Share this post

Link to post
Share on other sites
are you sure youve set the capability of the DSound buffer to change its pan setting?

you dont need to use the vtbl''s for cpp dx progs - take out anything that might look like that
eg. pDDSurface->lpVtbl->Blt should be pDDSurface->Blt in cpp.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!