Jump to content
  • Advertisement

Archived

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

cpprulz

DirectSound- no volume control :(

This topic is 5360 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

The sounds play fine, it''s just that calling DirectSoundBuffer::SetVolume() has no effect. I even tried passing in DSBVOLUME_MIN and the sound still plays at 0 dB. I only tried calling it after calling Play(), but that shouldn''t matter, right? The same goes for SetPan(), but SetCurrentPosition() seems to work. Thanx for any help.

Share this post


Link to post
Share on other sites
Advertisement
When you create the buffer, you have to specify flags to tell it you want to set those properties at runtime.

Look up IDirectSound8::CreateSoundBuffer - it''s all there in the DSBUFFERDESC structure.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!