Volume of production of audio equipment for the 4th generation. Ipod touch

I am currently developing a game for iPhone / iPod touch. For short sounds, I use the AudioServicesPlaySystemSound function. I know that I cannot control the volume of these sounds programmatically, but on my iPod touch 3rd gen these sounds respect the overall sound volume. On my new 4th generation iPod touch, these sounds always play at the same volume, no matter what value is set for the overall volume. They even play if the volume is muted to 0. AVAudioPlayer, on the other hand, works as expected. Both devices have been updated to iOS 4.1.

Has anyone else noticed this? Any suggestions on what's going on here?

+3
source share
2 answers

Just in case, someone has the same problem / interesting: if you have AVAudioPlayer at the same time, this problem goes away, which means that system games behave correctly again. In my case, I am currently playing empty mp3 in an endless loop. Not the nicest solution, but it works.

+3
source

Has anyone else noticed this?

Yes, also for AudioServicesPlaySystemSound. This happens on my iPod touch 4G, but not on my iPhone 3G. Both of them also launch iOS4.1.

I have no idea what is going on, but I suggest generosity to try to get the useful attention of uberguru. If not, then 1 infinite loop.


Update: Obviously, the problem also occurs with AVAudioPlayer on iPod 4th Gen - see https://devforums.apple.com/message/333169

, . ...

0

Source: https://habr.com/ru/post/1771175/


All Articles