So, I have an application that plays many short sound clips. I need to know when the sounds are finished, and I need to use mp3, so I use AVFoundation to play the sound.
When sound is actively playing and the user uses the hardware volume buttons, the playback volume changes. The problem is that the application does NOT constantly play sounds, and when not, and use the hardware buttons, the RINGER volume is adjusted instead.
How to configure it, if the application is running, the user can adjust the playback volume?
Thanks!
source share