AudioQueue.AllocateBuffer Método

Definição

Sobrecargas

AllocateBuffer(Int32, AudioQueueBuffer*)

Aloca um buffer de áudio associado a este AudioQueue

AllocateBuffer(Int32, IntPtr)

Aloca um buffer de áudio associado a este AudioQueue, usado para buffers de taxa de bits fixas.

AllocateBuffer(Int32, AudioQueueBuffer*)

Aloca um buffer de áudio associado a este AudioQueue

public AudioToolbox.AudioQueueStatus AllocateBuffer (int bufferSize, out AudioToolbox.AudioQueueBuffer* audioQueueBuffer);
member this.AllocateBuffer : int *  -> AudioToolbox.AudioQueueStatus

Parâmetros

bufferSize
Int32

O tamanho do buffer de áudio a ser alocado (em bytes).

audioQueueBuffer
AudioQueueBuffer*

Retorna o buffer alocado como um ponteiro AudioQueueBuffer não seguro.

Retornos

AudioQueueStatus.Ok em caso de êxito, caso contrário, o erro.

Comentários

Use FreeBuffer(IntPtr) para descartar o buffer.

Aplica-se a

AllocateBuffer(Int32, IntPtr)

Aloca um buffer de áudio associado a este AudioQueue, usado para buffers de taxa de bits fixas.

public AudioToolbox.AudioQueueStatus AllocateBuffer (int bufferSize, out IntPtr audioQueueBuffer);
member this.AllocateBuffer : int *  -> AudioToolbox.AudioQueueStatus

Parâmetros

bufferSize
Int32

O tamanho do buffer de áudio a ser alocado (em bytes).

audioQueueBuffer
IntPtr

nativeint

Retorna o ponteiro para o buffer alocado como um IntPtr.

Retornos

AudioQueueStatus.Ok em caso de êxito, caso contrário, o erro.

Comentários

Use o AllocateBufferWithPacketDescriptors(Int32, Int32, IntPtr) para alocar buffers que serão usados com codificações de taxa de bits variáveis.

Use FreeBuffer(IntPtr) para descartar o buffer.

Aplica-se a