Partilhar via


Função AcxAudioEngineGetDeviceFormatList (acxelements.h)

A função AcxAudioEngineGetDeviceFormatList recupera o objeto ACXDATAFORMATLIST que contém a lista de formatos com suporte para o nó do mecanismo de áudio. Para obter mais informações sobre objetos ACX, consulte Resumo de objetos ACX.

Sintaxe

ACXDATAFORMATLIST AcxAudioEngineGetDeviceFormatList(
  ACXAUDIOENGINE AudioEngine
);

Parâmetros

AudioEngine

Um objeto ACXAUDIOENGINE usado em um circuito de renderização para representar um DSP.

Valor de retorno

O objeto ACXDATAFORMATLIST que contém a lista de formatos com suporte para o objeto ACXAUDIOENGINE especificado.

Observações

Exemplo

O uso de exemplo é mostrado abaixo.

    status = AcxDataFormatCreate(Device, &attributes, &formatCfg, &formatPcm44100c2);
    formatCtx = GetCodecFormatContext(formatPcm44100c2);

    // Get the current audio engine device format list
    formatList = AcxAudioEngineGetDeviceFormatList(audioEngineElement);
    if (formatList == NULL)
    {
        status = STATUS_INSUFFICIENT_RESOURCES;
        goto exit;
    }

    // Add our supported formats to the audio engine device format list
    status = AcxDataFormatListAddDataFormat(formatList, formatPcm44100c2);

Requisitos do ACX

versão mínima do ACX: 1.0

Para obter mais informações sobre versões do ACX, consulte visão geral da versão do ACX.

Requisitos

Requisito Valor
cabeçalho acxelements.h
IRQL PASSIVE_LEVEL

Consulte também