AVAudioPlayerNode.ScheduleBuffer 方法

定义

重载

ScheduleBuffer(AVAudioPcmBuffer, Action)

计划从 buffer播放。

ScheduleBuffer(AVAudioPcmBuffer, AVAudioPlayerNodeCompletionCallbackType, Action<AVAudioPlayerNodeCompletionCallbackType>)
ScheduleBuffer(AVAudioPcmBuffer, AVAudioTime, AVAudioPlayerNodeBufferOptions, Action)

计划从 buffer播放。

ScheduleBuffer(AVAudioPcmBuffer, AVAudioTime, AVAudioPlayerNodeBufferOptions, AVAudioPlayerNodeCompletionCallbackType, Action<AVAudioPlayerNodeCompletionCallbackType>)

ScheduleBuffer(AVAudioPcmBuffer, Action)

计划从 buffer播放。

[Foundation.Export("scheduleBuffer:completionHandler:")]
public virtual void ScheduleBuffer (AVFoundation.AVAudioPcmBuffer buffer, Action completionHandler);
abstract member ScheduleBuffer : AVFoundation.AVAudioPcmBuffer * Action -> unit
override this.ScheduleBuffer : AVFoundation.AVAudioPcmBuffer * Action -> unit

参数

completionHandler
Action

内容待定。

此参数可以为 null

属性

适用于

ScheduleBuffer(AVAudioPcmBuffer, AVAudioPlayerNodeCompletionCallbackType, Action<AVAudioPlayerNodeCompletionCallbackType>)

[Foundation.Export("scheduleBuffer:completionCallbackType:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void ScheduleBuffer (AVFoundation.AVAudioPcmBuffer buffer, AVFoundation.AVAudioPlayerNodeCompletionCallbackType callbackType, Action<AVFoundation.AVAudioPlayerNodeCompletionCallbackType> completionHandler);
abstract member ScheduleBuffer : AVFoundation.AVAudioPcmBuffer * AVFoundation.AVAudioPlayerNodeCompletionCallbackType * Action<AVFoundation.AVAudioPlayerNodeCompletionCallbackType> -> unit
override this.ScheduleBuffer : AVFoundation.AVAudioPcmBuffer * AVFoundation.AVAudioPlayerNodeCompletionCallbackType * Action<AVFoundation.AVAudioPlayerNodeCompletionCallbackType> -> unit

参数

completionHandler
Action<AVAudioPlayerNodeCompletionCallbackType>

内容待定。

此参数可以为 null

属性

适用于

ScheduleBuffer(AVAudioPcmBuffer, AVAudioTime, AVAudioPlayerNodeBufferOptions, Action)

计划从 buffer播放。

[Foundation.Export("scheduleBuffer:atTime:options:completionHandler:")]
public virtual void ScheduleBuffer (AVFoundation.AVAudioPcmBuffer buffer, AVFoundation.AVAudioTime when, AVFoundation.AVAudioPlayerNodeBufferOptions options, Action completionHandler);
abstract member ScheduleBuffer : AVFoundation.AVAudioPcmBuffer * AVFoundation.AVAudioTime * AVFoundation.AVAudioPlayerNodeBufferOptions * Action -> unit
override this.ScheduleBuffer : AVFoundation.AVAudioPcmBuffer * AVFoundation.AVAudioTime * AVFoundation.AVAudioPlayerNodeBufferOptions * Action -> unit

参数

when
AVAudioTime

内容待定。

此参数可以为 null

completionHandler
Action

内容待定。

此参数可以为 null

属性

适用于

ScheduleBuffer(AVAudioPcmBuffer, AVAudioTime, AVAudioPlayerNodeBufferOptions, AVAudioPlayerNodeCompletionCallbackType, Action<AVAudioPlayerNodeCompletionCallbackType>)

[Foundation.Export("scheduleBuffer:atTime:options:completionCallbackType:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void ScheduleBuffer (AVFoundation.AVAudioPcmBuffer buffer, AVFoundation.AVAudioTime when, AVFoundation.AVAudioPlayerNodeBufferOptions options, AVFoundation.AVAudioPlayerNodeCompletionCallbackType callbackType, Action<AVFoundation.AVAudioPlayerNodeCompletionCallbackType> completionHandler);
abstract member ScheduleBuffer : AVFoundation.AVAudioPcmBuffer * AVFoundation.AVAudioTime * AVFoundation.AVAudioPlayerNodeBufferOptions * AVFoundation.AVAudioPlayerNodeCompletionCallbackType * Action<AVFoundation.AVAudioPlayerNodeCompletionCallbackType> -> unit
override this.ScheduleBuffer : AVFoundation.AVAudioPcmBuffer * AVFoundation.AVAudioTime * AVFoundation.AVAudioPlayerNodeBufferOptions * AVFoundation.AVAudioPlayerNodeCompletionCallbackType * Action<AVFoundation.AVAudioPlayerNodeCompletionCallbackType> -> unit

参数

buffer
AVAudioPcmBuffer

要播放的缓冲区。

when
AVAudioTime

播放缓冲区的时间。 可为 null

此参数可以为 null

options
AVAudioPlayerNodeBufferOptions

播放选项,例如优先级或是否循环播放。

callbackType
AVAudioPlayerNodeCompletionCallbackType

何时在播放生命周期中调用回调。

completionHandler
Action<AVAudioPlayerNodeCompletionCallbackType>

在播放生命周期内要调用的处理程序。 可为 null

此参数可以为 null

属性

适用于