PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Game sound volume etiquette

I'd like to hear some opinions on device volume etiquette for games...

like if the user has their device muted - should the game sound be off as well? Should your volume controls over ride the device volume controls?

Currently using FMod - I can change the volume but it is dependant on the device volume so if my volume is max but device volume is set on low than the sound is going to come in very soft

I think the best thing to do is check if they are on mute and set my sound to OFF otherwise crank up the device volume to max and use my FMod volume slider to determine game volume

anyone know how to query device volume??

thanks!
I Found a good article on volume for those interested

http://www.pocketpcdn.com/qa/soundvolume.html
Hi Draklava

Now I'm thinking on the same problem. I'm using fmod too, and read article you told.

I think the best solution is allow players to change system volume from your game. In this case players could see and change current system volume any time.
Code from your link allows to do it
(only one bug in it, must be: wf.nSamplesPerSec = 8000;)
But it works only if fmod still not initialized. :( I'm trying to force it to work, but still unsuccessful.
If we couldn't let player to change system volume, your proposal is most logical for me. But some people says that it wrong practice to set system volume to max - player could have some reminders, and it will be a super alarm if they start to play during the game! :) May be better do not touch the system volume at all...
Yes! :D
I did it! :) :)
I could change system(master) volume when fmod already initialized. And it taking effect on whole system even when game finished.

So I see the ideal solution of sound etiquette question (I already implemented it): add to your game options screen where player could operate Master, Music and SFX volume. Master shows current system volume and if player change it, it takes effect on whole system. Music and SFX are FMODs volumes that taking effect only in your game.

The code to change system volume is:

Code:

MMRESULT mmr;
UINT devs = waveOutGetNumDevs();
for (UINT id = 0; id < devs; id++) {
WAVEOUTCAPS pwoc;
mmr = waveOutGetDevCaps(id, &pwoc;, sizeof(WAVEOUTCAPS));
int vol_editable = pwoc.dwSupport & WAVECAPS_VOLUME;

if (vol_editable)
waveOutSetVolume((HWAVEOUT)id, dwVolume);
}


Gurus! Please look on it. What could be wrong? A am not sure that all is absolutely right here. But it works! :)

Best regards,
AndreyT.