scheduleBuffer(buffer:completionCallbackType:completionHandler:)
Schedules audio data playback with a completion handler.
Declaration
func scheduleBuffer(buffer: AVAudioPCMBuffer, completionCallbackType: PHASEPushStreamCompletionCallbackCondition, completionHandler: @escaping @Sendable (PHASEPushStreamCompletionCallbackCondition) -> Void)func scheduleBuffer(buffer: AVAudioPCMBuffer, completionCallbackType: PHASEPushStreamCompletionCallbackCondition) async -> PHASEPushStreamCompletionCallbackConditionParameters
- buffer:
Data that represents one portion of a contiguous audio stream.
- completionCallbackType:
The specific event on which to handle completion.
- completionHandler:
Code the framework runs on completion or when the player stops.