Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/CSFBAudioEngine/Player/AudioPlayer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,8 @@ NS_SWIFT_NAME(AudioPlayer.Delegate) @protocol SFBAudioPlayerDelegate <NSObject>
/// 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
Expand Down