diff --git a/Sources/CSFBAudioEngine/Player/AudioPlayer.mm b/Sources/CSFBAudioEngine/Player/AudioPlayer.mm index 7a467751..5da443f8 100644 --- a/Sources/CSFBAudioEngine/Player/AudioPlayer.mm +++ b/Sources/CSFBAudioEngine/Player/AudioPlayer.mm @@ -1874,8 +1874,8 @@ bool PerformSeekIfRequired() noexcept } } - if([player_.delegate respondsToSelector:@selector(audioPlayerAVAudioEngineConfigurationChange:)]) - [player_.delegate audioPlayerAVAudioEngineConfigurationChange:player_]; + if([player_.delegate respondsToSelector:@selector(audioPlayer:audioEngineConfigurationChange:)]) + [player_.delegate audioPlayer:player_ audioEngineConfigurationChange:userInfo]; } #if TARGET_OS_IPHONE diff --git a/Sources/CSFBAudioEngine/include/SFBAudioEngine/SFBAudioPlayer.h b/Sources/CSFBAudioEngine/include/SFBAudioEngine/SFBAudioPlayer.h index 82665100..4c091ad4 100644 --- a/Sources/CSFBAudioEngine/include/SFBAudioEngine/SFBAudioPlayer.h +++ b/Sources/CSFBAudioEngine/include/SFBAudioEngine/SFBAudioPlayer.h @@ -369,7 +369,8 @@ NS_SWIFT_NAME(AudioPlayer.Delegate) @protocol SFBAudioPlayerDelegate /// Called to notify the delegate when the configuration of the `AVAudioEngine` changes /// - note: Use this instead of listening for `AVAudioEngineConfigurationChangeNotification` /// - parameter audioPlayer: The `SFBAudioPlayer` object -- (void)audioPlayerAVAudioEngineConfigurationChange:(SFBAudioPlayer *)audioPlayer NS_SWIFT_NAME(audioPlayerAVAudioEngineConfigurationChange(_:)); +/// - parameter userInfo: The `userInfo` object from the notification +- (void)audioPlayer:(SFBAudioPlayer *)audioPlayer audioEngineConfigurationChange:(nullable NSDictionary *)userInfo; /// Called to notify the delegate when an asynchronous error occurs /// - parameter audioPlayer: The `SFBAudioPlayer` object /// - parameter error: The error