編輯

共用方式為


AVAudioPlayerNode.ScheduleSegment Method

Definition

Overloads

ScheduleSegment(AVAudioFile, Int64, UInt32, AVAudioTime, Action)

Schedules the playing of a portion of the audio file.

ScheduleSegment(AVAudioFile, Int64, UInt32, AVAudioTime, AVAudioPlayerNodeCompletionCallbackType, Action<AVAudioPlayerNodeCompletionCallbackType>)

ScheduleSegment(AVAudioFile, Int64, UInt32, AVAudioTime, Action)

Schedules the playing of a portion of the audio file.

[Foundation.Export("scheduleSegment:startingFrame:frameCount:atTime:completionHandler:")]
public virtual void ScheduleSegment (AVFoundation.AVAudioFile file, long startFrame, uint numberFrames, AVFoundation.AVAudioTime when, Action completionHandler);
abstract member ScheduleSegment : AVFoundation.AVAudioFile * int64 * uint32 * AVFoundation.AVAudioTime * Action -> unit
override this.ScheduleSegment : AVFoundation.AVAudioFile * int64 * uint32 * AVFoundation.AVAudioTime * Action -> unit

Parameters

startFrame
Int64
numberFrames
UInt32
when
AVAudioTime

To be added.

This parameter can be null.

completionHandler
Action

To be added.

This parameter can be null.

Attributes

Applies to

ScheduleSegment(AVAudioFile, Int64, UInt32, AVAudioTime, AVAudioPlayerNodeCompletionCallbackType, Action<AVAudioPlayerNodeCompletionCallbackType>)

[Foundation.Export("scheduleSegment:startingFrame:frameCount:atTime: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 ScheduleSegment (AVFoundation.AVAudioFile file, long startFrame, uint numberFrames, AVFoundation.AVAudioTime when, AVFoundation.AVAudioPlayerNodeCompletionCallbackType callbackType, Action<AVFoundation.AVAudioPlayerNodeCompletionCallbackType> completionHandler);
abstract member ScheduleSegment : AVFoundation.AVAudioFile * int64 * uint32 * AVFoundation.AVAudioTime * AVFoundation.AVAudioPlayerNodeCompletionCallbackType * Action<AVFoundation.AVAudioPlayerNodeCompletionCallbackType> -> unit
override this.ScheduleSegment : AVFoundation.AVAudioFile * int64 * uint32 * AVFoundation.AVAudioTime * AVFoundation.AVAudioPlayerNodeCompletionCallbackType * Action<AVFoundation.AVAudioPlayerNodeCompletionCallbackType> -> unit

Parameters

startFrame
Int64
numberFrames
UInt32
when
AVAudioTime

To be added.

This parameter can be null.

completionHandler
Action<AVAudioPlayerNodeCompletionCallbackType>

To be added.

This parameter can be null.

Attributes

Applies to