AVAudioPlayerNode.ScheduleBufferAsync Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
ScheduleBufferAsync(AVAudioPcmBuffer) | |
ScheduleBufferAsync(AVAudioPcmBuffer, AVAudioPlayerNodeCompletionCallbackType) | |
ScheduleBufferAsync(AVAudioPcmBuffer, AVAudioTime, AVAudioPlayerNodeBufferOptions) |
Agenda de forma assíncrona a reprodução de |
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
O buffer a ser reproduzido.
Retornos
Uma tarefa que representa a operação assíncrona ScheduleBuffer
Aplica-se 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
O buffer a ser reproduzido.
- callbackType
- AVAudioPlayerNodeCompletionCallbackType
Quando chamar o retorno de chamada no ciclo de vida de reprodução.
Retornos
- Atributos
Aplica-se a
ScheduleBufferAsync(AVAudioPcmBuffer, AVAudioTime, AVAudioPlayerNodeBufferOptions)
Agenda de forma assíncrona a reprodução de buffer
, retornando uma tarefa que indica êxito ou falha.
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
O buffer a ser reproduzido.
- when
- AVAudioTime
A hora em que o buffer deve ser reproduzido. Pode ser null
.
- options
- AVAudioPlayerNodeBufferOptions
Opções de reprodução, como prioridade ou se deseja fazer loop da reprodução.
Retornos
Aplica-se 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
O buffer a ser reproduzido.
- when
- AVAudioTime
A hora em que o buffer deve ser reproduzido. Pode ser null
.
- options
- AVAudioPlayerNodeBufferOptions
Opções de reprodução, como prioridade ou se deseja fazer loop da reprodução.
- callbackType
- AVAudioPlayerNodeCompletionCallbackType
Quando chamar o retorno de chamada no ciclo de vida de reprodução.
Retornos
- Atributos