I've received several feedbacks asking to mute the music and the sounds when the user use the side mute button of the iPhone. What fo you guys think about it ?
This is strnage that it is not automatically handled by the device. The volume of the music/sounds is handled by the side volume buttons, but not the mute button.
did some of you already imlpemented this ?
Mute button >> music/sounds off
(7 posts) (4 voices)-
Posted 2 years ago #
-
That seems impossible. The button that you flip on the site for mute should turn off the speaker. There must be a misunderstanding.
Posted 2 years ago # -
No the button does not turn off the speaker. I remember a while back i had a couple of updates for some apps that said, "mute switch now works". I did find a link however that talks about how to use this.
http://www.restoroot.com/Blog/2008/12/25/audiosessioninitialize-workarounds/
hth
-LarsPosted 2 years ago # -
I added nothing fancy to handle this in my game and I just tested it. It mutes the sound when the button is flipped. I'm using CocosDenshion, maybe it's handled beneath the covers?
Posted 2 years ago # -
Yes, CocosDenshion is supposed to handle this if it does not then it is a bug with CocosDenshion so please let me know.
Posted 2 years ago # -
It works fine Steve. No worries. Thanks for your great code and examples.
Posted 2 years ago # -
I should add that it is just handled by setting up the audio session correctly - different audio session categories handle the mute button in different ways.
Posted 2 years ago #
Reply
You must log in to post.