Delegate for the AudioStreamManager
Called when a file from the SDLAudioStreamManager finishes playing
- (void)audioStreamManager:(nonnull SDLAudioStreamManager *)audioManager
fileDidFinishPlaying:(nonnull NSURL *)fileURL
successfully:(BOOL)successfully;
func audioStreamManager(_ audioManager: SDLAudioStreamManager, fileDidFinishPlaying fileURL: URL, successfully: Bool)
A reference to the audio stream manager
The URL that finished playing
Whether or not it was played successfully
Called when a file from the SDLAudioStreamManager could not play
- (void)audioStreamManager:(nonnull SDLAudioStreamManager *)audioManager
errorDidOccurForFile:(nonnull NSURL *)fileURL
error:(nonnull NSError *)error;
func audioStreamManager(_ audioManager: SDLAudioStreamManager, errorDidOccurForFile fileURL: URL, error: Error)
A reference to the audio stream manager
The URL that failed
The error that occurred
Called when a data buffer from the SDLAudioStreamManager finishes playing
- (void)audioStreamManager:(nonnull SDLAudioStreamManager *)audioManager
dataBufferDidFinishPlayingSuccessfully:(BOOL)successfully;
optional func audioStreamManager(_ audioManager: SDLAudioStreamManager, dataBufferDidFinishPlayingSuccessfully successfully: Bool)
A reference to the audio stream manager
Whether or not the data buffer played successfully
Called when a data buffer from the SDLAudioStreamManager could not play
- (void)audioStreamManager:(nonnull SDLAudioStreamManager *)audioManager
errorDidOccurForDataBuffer:(nonnull NSError *)error;
optional func audioStreamManager(_ audioManager: SDLAudioStreamManager, errorDidOccurForDataBuffer error: Error)
A reference to the audio stream manager
The error that occurred