Skip to content

Observe AVAudioSessionRouteChangeNotification on iOS #4734

@cerupcat

Description

@cerupcat

On iOS, since iPhone 6s devices are locked to 48k sampleRates, yet headphone jacks can be 44.1k, it's important to listen to AVAudioSessionRouteChangeNotification (for route changes) and restart the audio if the sample rate changes. Otherwise, if you change sampleRates mid-way through and don't account for it, there will be weird audio sounds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions