in my iOS app I have an Audio that is played beyond my control (imported framework). All I want do to is detect that sound and duck (lower the volume of) my background song.
I tested with AVAudioSession
's otherAudioPlaying
and it, correctly, returns false. Because no other app is playing but mine.
Is there a way to accomplish that?