Archived

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

Guest Anonymous Poster

Setting Master Volume

Recommended Posts

Guest Anonymous Poster
That is not toyaly correct. If you manage the primary buffer you loose hardware control. It sounds like your problem is that your not setting the primary buffer to Play reatidly.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I don't know if this is what you want, but this will set the wave device volume. Hope this help.
waveOutOpen(&WaveOut,WAVE_MAPPER,NULL,NULL,NULL,CALLBACK_NULL);
waveOutSetVolume(WaveOut,FxVol);
waveOutClose(WaveOut);

PS : FxVol is a DWORD value (16 bit each for left and right volume);

Share this post


Link to post
Share on other sites
Guest Anonymous Poster

I have the DirectSound working OK now.
However I want to include a master
audio volume controller. I looked at the DirectSound doc and it seemed to
say to alter the volume on the primary
buffer. I did this but the frame rate on
my game dropped by about 5. I read that
if you access the primary buffer the secondary buffers loose hardware support.
Is there another way to implement a master
volume control?

Share this post


Link to post
Share on other sites