audioPlayerDecodeErrorDidOccur(_:error:)
Tells the delegate when an audio player encounters a decoding error during playback.
Declaration
optional func audioPlayerDecodeErrorDidOccur(_ player: AVAudioPlayer, error: (any Error)?)Parameters
- player:
The audio player that encounters the decoding error.
- error:
The decoding error.