AcxAudioEngineGetDeviceFormatList 函式 (acxelements.h)
AcxAudioEngineGetDeviceFormatList 函式會擷取 ACXDATAFORMATLIST 物件,此物件會保存音訊引擎節點支援的格式清單。 如需 ACX 物件的詳細資訊,請參閱 ACX 物件的 摘要。
語法
ACXDATAFORMATLIST AcxAudioEngineGetDeviceFormatList(
ACXAUDIOENGINE AudioEngine
);
參數
AudioEngine
用於轉譯線路的 ACXAUDIOENGINE 對象,用來表示 DSP。
傳回值
ACXDATAFORMATLIST 物件,其中包含指定 ACXAUDIOENGINE 物件的支援格式清單。
言論
例
範例使用方式如下所示。
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);
ACX 需求
ACX 最低版本: 1.0
如需 ACX 版本的詳細資訊,請參閱 ACX 版本概觀。
要求
要求 | 價值 |
---|---|
標頭 | acxelements.h |
IRQL | PASSIVE_LEVEL |