Compartir a través de


AVAudioPlayerNode.ScheduleBufferAsync Método

Definición

Sobrecargas

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

Programa de forma asincrónica la reproducción desde buffer, devolviendo una tarea que indica que se ha realizado correctamente o no.

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

Parámetros

buffer
AVAudioPcmBuffer

Búfer que se va a reproducir.

Devoluciones

Tarea que representa la operación ScheduleBuffer asincrónica.

Se aplica a

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>

Parámetros

buffer
AVAudioPcmBuffer

Búfer que se va a reproducir.

callbackType
AVAudioPlayerNodeCompletionCallbackType

Cuándo llamar a la devolución de llamada en el ciclo de vida de reproducción.

Devoluciones

Atributos

Se aplica a

ScheduleBufferAsync(AVAudioPcmBuffer, AVAudioTime, AVAudioPlayerNodeBufferOptions)

Programa de forma asincrónica la reproducción desde buffer, devolviendo una tarea que indica que se ha realizado correctamente o no.

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

Parámetros

buffer
AVAudioPcmBuffer

Búfer que se va a reproducir.

when
AVAudioTime

Hora a la que se va a reproducir el búfer. Puede ser null.

options
AVAudioPlayerNodeBufferOptions

Opciones de reproducción, como prioridad o si se va a repetir la reproducción.

Devoluciones

Se aplica a

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>

Parámetros

buffer
AVAudioPcmBuffer

Búfer que se va a reproducir.

when
AVAudioTime

Hora a la que se va a reproducir el búfer. Puede ser null.

options
AVAudioPlayerNodeBufferOptions

Opciones de reproducción, como prioridad o si se va a repetir la reproducción.

callbackType
AVAudioPlayerNodeCompletionCallbackType

Cuándo llamar a la devolución de llamada en el ciclo de vida de reproducción.

Devoluciones

Atributos

Se aplica a