Partager via


AVAudioPlayerNode.ScheduleBufferAsync Méthode

Définition

Surcharges

ScheduleBufferAsync(AVAudioPcmBuffer)
ScheduleBufferAsync(AVAudioPcmBuffer, AVAudioPlayerNodeCompletionCallbackType)
ScheduleBufferAsync(AVAudioPcmBuffer, AVAudioTime, AVAudioPlayerNodeBufferOptions)

Planifie de manière asynchrone la lecture à partir de buffer, en retournant une tâche qui indique la réussite ou l’échec.

ScheduleBufferAsync(AVAudioPcmBuffer, AVAudioTime, AVAudioPlayerNodeBufferOptions, AVAudioPlayerNodeCompletionCallbackType)

ScheduleBufferAsync(AVAudioPcmBuffer)

public virtual System.Threading.Tasks.Task ScheduleBufferAsync (AVFoundation.AVAudioPcmBuffer buffer);
abstract member ScheduleBufferAsync : AVFoundation.AVAudioPcmBuffer -> System.Threading.Tasks.Task
override this.ScheduleBufferAsync : AVFoundation.AVAudioPcmBuffer -> System.Threading.Tasks.Task

Paramètres

buffer
AVAudioPcmBuffer

Mémoire tampon à lire.

Retours

Tâche qui représente l’opération ScheduleBuffer asynchrone

S’applique à

ScheduleBufferAsync(AVAudioPcmBuffer, AVAudioPlayerNodeCompletionCallbackType)

[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 System.Threading.Tasks.Task<AVFoundation.AVAudioPlayerNodeCompletionCallbackType> ScheduleBufferAsync (AVFoundation.AVAudioPcmBuffer buffer, AVFoundation.AVAudioPlayerNodeCompletionCallbackType callbackType);
abstract member ScheduleBufferAsync : AVFoundation.AVAudioPcmBuffer * AVFoundation.AVAudioPlayerNodeCompletionCallbackType -> System.Threading.Tasks.Task<AVFoundation.AVAudioPlayerNodeCompletionCallbackType>
override this.ScheduleBufferAsync : AVFoundation.AVAudioPcmBuffer * AVFoundation.AVAudioPlayerNodeCompletionCallbackType -> System.Threading.Tasks.Task<AVFoundation.AVAudioPlayerNodeCompletionCallbackType>

Paramètres

buffer
AVAudioPcmBuffer

Mémoire tampon à lire.

callbackType
AVAudioPlayerNodeCompletionCallbackType

Quand appeler le rappel dans le cycle de vie de lecture.

Retours

Attributs

S’applique à

ScheduleBufferAsync(AVAudioPcmBuffer, AVAudioTime, AVAudioPlayerNodeBufferOptions)

Planifie de manière asynchrone la lecture à partir de buffer, en retournant une tâche qui indique la réussite ou l’échec.

public virtual System.Threading.Tasks.Task ScheduleBufferAsync (AVFoundation.AVAudioPcmBuffer buffer, AVFoundation.AVAudioTime when, AVFoundation.AVAudioPlayerNodeBufferOptions options);
abstract member ScheduleBufferAsync : AVFoundation.AVAudioPcmBuffer * AVFoundation.AVAudioTime * AVFoundation.AVAudioPlayerNodeBufferOptions -> System.Threading.Tasks.Task
override this.ScheduleBufferAsync : AVFoundation.AVAudioPcmBuffer * AVFoundation.AVAudioTime * AVFoundation.AVAudioPlayerNodeBufferOptions -> System.Threading.Tasks.Task

Paramètres

buffer
AVAudioPcmBuffer

Mémoire tampon à lire.

when
AVAudioTime

Heure à laquelle lire la mémoire tampon. Peut avoir la valeur null.

options
AVAudioPlayerNodeBufferOptions

Options de lecture, telles que la priorité ou s’il faut boucler la lecture.

Retours

S’applique à

ScheduleBufferAsync(AVAudioPcmBuffer, AVAudioTime, AVAudioPlayerNodeBufferOptions, AVAudioPlayerNodeCompletionCallbackType)

[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 System.Threading.Tasks.Task<AVFoundation.AVAudioPlayerNodeCompletionCallbackType> ScheduleBufferAsync (AVFoundation.AVAudioPcmBuffer buffer, AVFoundation.AVAudioTime when, AVFoundation.AVAudioPlayerNodeBufferOptions options, AVFoundation.AVAudioPlayerNodeCompletionCallbackType callbackType);
abstract member ScheduleBufferAsync : AVFoundation.AVAudioPcmBuffer * AVFoundation.AVAudioTime * AVFoundation.AVAudioPlayerNodeBufferOptions * AVFoundation.AVAudioPlayerNodeCompletionCallbackType -> System.Threading.Tasks.Task<AVFoundation.AVAudioPlayerNodeCompletionCallbackType>
override this.ScheduleBufferAsync : AVFoundation.AVAudioPcmBuffer * AVFoundation.AVAudioTime * AVFoundation.AVAudioPlayerNodeBufferOptions * AVFoundation.AVAudioPlayerNodeCompletionCallbackType -> System.Threading.Tasks.Task<AVFoundation.AVAudioPlayerNodeCompletionCallbackType>

Paramètres

buffer
AVAudioPcmBuffer

Mémoire tampon à lire.

when
AVAudioTime

Heure à laquelle lire la mémoire tampon. Peut avoir la valeur null.

options
AVAudioPlayerNodeBufferOptions

Options de lecture, telles que la priorité ou s’il faut boucler la lecture.

callbackType
AVAudioPlayerNodeCompletionCallbackType

Quand appeler le rappel dans le cycle de vie de lecture.

Retours

Attributs

S’applique à