AudioServicesPlaySystemSound Volume Control

I wanted to ask if there is a way to control the volume of the sound effect of the system. When I press the volume button (up and down) in a game, the sound effects of the system are not affected. I also read that the ringer volume should influence this. But it’s strange that when I press the volume up and down, I don’t see the melody text on top of the speaker icon. I only see the speaker icon without a call from above when I press the volume control. Does anyone know why?

Thank.

+3
source share
2 answers

, iPod , , , , . , .

+1

,

    [[AVAudioSession sharedInstance]
     setCategory:AVAudioSessionCategoryPlayAndRecord
     withOptions:AVAudioSessionCategoryOptionDefaultToSpeaker
     error:nil];
0

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


All Articles