init
TypeScriptstatic init(): AVAudioPlayerNodeSwift declarationinit()class · iOS 8.0+ · SDK 27.1
class AVAudioPlayerNodestatic init(): AVAudioPlayerNodeSwift declarationinit()nodeTime(playerTime: AVAudioTime): (AVAudioTime) | nullSwift declarationfunc nodeTime(forPlayerTime playerTime: AVAudioTime) -> AVAudioTime?pause(): voidSwift declarationfunc pause()play(): voidSwift declarationfunc play()playAudio(): voidSwift declarationfunc playAudio() throwsplayAt(when?: (AVAudioTime) | null): voidSwift declarationfunc play(at when: AVAudioTime?)playAudioAt(when?: (AVAudioTime) | null): voidSwift declarationfunc playAudio(at when: AVAudioTime?) throwsplayerTime(nodeTime: AVAudioTime): (AVAudioTime) | nullSwift declarationfunc playerTime(forNodeTime nodeTime: AVAudioTime) -> AVAudioTime?prepare(frameCount: number): voidSwift declarationfunc prepare(withFrameCount frameCount: AVAudioFrameCount)scheduleBufferAtOptionsCompletionCallbackTypeCompletionHandler(buffer: AVAudioPCMBuffer, when: (AVAudioTime) | null, options: AVAudioPlayerNodeBufferOptions, callbackType: AVAudioPlayerNodeCompletionCallbackType, completionHandler?: (((arg0: AVAudioPlayerNodeCompletionCallbackType) => void)) | null): voidSwift declarationfunc scheduleBuffer(_ buffer: AVAudioPCMBuffer, at when: AVAudioTime?, options: AVAudioPlayerNodeBufferOptions = [], completionCallbackType callbackType: AVAudioPlayerNodeCompletionCallbackType) async -> AVAudioPlayerNodeCompletionCallbackTypescheduleBufferAtOptionsCompletionHandler(buffer: AVAudioPCMBuffer, when?: (AVAudioTime) | null, options?: AVAudioPlayerNodeBufferOptions, completionHandler?: ((() => void)) | null): voidSwift declarationfunc scheduleBuffer(_ buffer: AVAudioPCMBuffer, at when: AVAudioTime?, options: AVAudioPlayerNodeBufferOptions = []) asyncscheduleBufferCompletionCallbackTypeCompletionHandler(buffer: AVAudioPCMBuffer, callbackType: AVAudioPlayerNodeCompletionCallbackType, completionHandler?: (((arg0: AVAudioPlayerNodeCompletionCallbackType) => void)) | null): voidSwift declarationfunc scheduleBuffer(_ buffer: AVAudioPCMBuffer, completionCallbackType callbackType: AVAudioPlayerNodeCompletionCallbackType) async -> AVAudioPlayerNodeCompletionCallbackTypescheduleBufferCompletionHandler(buffer: AVAudioPCMBuffer, completionHandler?: ((() => void)) | null): voidSwift declarationfunc scheduleBuffer(_ buffer: AVAudioPCMBuffer) asyncscheduleFileAtCompletionCallbackTypeCompletionHandler(file: AVAudioFile, when: (AVAudioTime) | null, callbackType: AVAudioPlayerNodeCompletionCallbackType, completionHandler?: (((arg0: AVAudioPlayerNodeCompletionCallbackType) => void)) | null): voidSwift declarationfunc scheduleFile(_ file: AVAudioFile, at when: AVAudioTime?, completionCallbackType callbackType: AVAudioPlayerNodeCompletionCallbackType) async -> AVAudioPlayerNodeCompletionCallbackTypescheduleFileAtCompletionHandler(file: AVAudioFile, when?: (AVAudioTime) | null, completionHandler?: ((() => void)) | null): voidSwift declarationfunc scheduleFile(_ file: AVAudioFile, at when: AVAudioTime?) asyncscheduleSegmentStartingFrameFrameCountAtCompletionCallbackTypeCompletionHandler(file: AVAudioFile, startFrame: number, numberFrames: number, when: (AVAudioTime) | null, callbackType: AVAudioPlayerNodeCompletionCallbackType, completionHandler?: (((arg0: AVAudioPlayerNodeCompletionCallbackType) => void)) | null): voidSwift declarationfunc scheduleSegment(_ file: AVAudioFile, startingFrame startFrame: AVAudioFramePosition, frameCount numberFrames: AVAudioFrameCount, at when: AVAudioTime?, completionCallbackType callbackType: AVAudioPlayerNodeCompletionCallbackType) async -> AVAudioPlayerNodeCompletionCallbackTypescheduleSegmentStartingFrameFrameCountAtCompletionHandler(file: AVAudioFile, startFrame: number, numberFrames: number, when?: (AVAudioTime) | null, completionHandler?: ((() => void)) | null): voidSwift declarationfunc scheduleSegment(_ file: AVAudioFile, startingFrame startFrame: AVAudioFramePosition, frameCount numberFrames: AVAudioFrameCount, at when: AVAudioTime?) asyncstop(): voidSwift declarationfunc stop()get isPlaying(): booleanSwift declarationvar isPlaying: Bool { get }scheduleBufferAtTimeOptionsCompletionCallbackTypeCompletionHandler(buffer: AVReadOnlyAudioPCMBuffer, when?: (AVAudioTime) | null, options?: AVAudioPlayerNodeBufferOptions, callbackType?: AVAudioPlayerNodeCompletionCallbackType, completionHandler?: ((() => void)) | null): voidSwift declarationfunc scheduleBuffer(_ buffer: AVReadOnlyAudioPCMBuffer, atTime when: AVAudioTime? = nil, options: AVAudioPlayerNodeBufferOptions = [], completionCallbackType callbackType: AVAudioPlayerNodeCompletionCallbackType = .dataConsumed, completionHandler: (@Sendable () -> Void)? = nil)Schedules playing samples from a read-only audio buffer. - Parameters: - buffer: The read-only buffer to play. - when: The time at which to play the buffer. Nil means "follow previous command". - options: Options for looping, interrupting, etc. - callbackType: Specifies when the completion handler is called. - completionHandler: Called after the buffer has been consumed, rendered, or played back. May be nil.
scheduleBufferAtTimeOptionsCompletionCallbackTypeCompletionHandler5497(buffer: AVAudioPCMBuffer, when: (AVAudioTime) | null, options: AVAudioPlayerNodeBufferOptions, callbackType: AVAudioPlayerNodeCompletionCallbackType, completionHandler?: ((() => void)) | null): voidSwift declarationfunc scheduleBuffer(_ buffer: AVAudioPCMBuffer, atTime when: AVAudioTime? = nil, options: AVAudioPlayerNodeBufferOptions = [], completionCallbackType callbackType: AVAudioPlayerNodeCompletionCallbackType, completionHandler: (@Sendable () -> Void)?)Schedules playing samples from an audio buffer. - Parameters: - buffer: The buffer to play. - when: The time at which to play the buffer. Nil means "follow previous command". - options: Options for looping, interrupting, etc. - callbackType: Specifies when the completion handler is called. - completionHandler: Called after the buffer has been consumed, rendered, or played back. May be nil.
No declarations were skipped in this snapshot.