Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

A system sound ignores volume level

I am working on the game. And I have some issue with sounds.

I use system sounds to acknowledge a player, when he/she presses a button. These sounds respect the volume set by a player, when other sounds are playing (I use AVAudioPlayers and AudioQueues). But when a system sound is only to play, it ignore a volume set by player and plays at a ringer's volume.

How to force system sounds to respect a volume set by a player even when is no other sounds played?

like image 519
Aleksejs Mjaliks Avatar asked Mar 29 '11 20:03

Aleksejs Mjaliks


1 Answers

Assuming you are meaning that players are setting the volume using the side volume buttons on the device:

I had the same problem getting SystemSound to respect the volume buttons but found a setting in "Settings"/"Sounds"/"Ringer and Alerts"/"Change With Buttons" that was "OFF" by default. Switching that to "ON" made it work.

like image 140
pIkEL Avatar answered Sep 25 '22 23:09

pIkEL