IAudioMediaType 介面 (audiomediatype.h)

介面 IAudioMediaType 會公開方法,讓 sAPO 取得用來與音訊引擎交涉以取得適當音訊資料格式的資訊。 sAPO 也會傳回此介面,以回應 IAudioSystemEffectsCustomFormats::GetFormat的呼叫。

IAudioMediaType 繼承自 IUnknown ,也支援下列方法:

IAudioMediaType::GetAudioFormat

IAudioMediaType::GetUncompressedAudioFormat

IAudioMediaType::IsCompressedFormat

IAudioMediaType::IsEqual

繼承

IAudioMediaType介面繼承自 IUnknown 介面。

方法

IAudioMediaType介面具有這些方法。

 
IAudioMediaType::GetAudioFormat

GetAudioFormat 方法會傳回音頻資料格式的 WAVEFORMATEX 結構。
IAudioMediaType::GetUncompressedAudioFormat

IAudioMediaType::GetUncompressedAudioFormat 會傳回音頻資料格式的相關資訊。
IAudioMediaType::IsCompressedFormat

IsCompressedFormat 方法會判斷音訊資料格式是否為壓縮格式。
IAudioMediaType::IsEqual

IsEqual 方法會比較兩種媒體類型,並判斷它們是否相同。

規格需求

   
目標平臺 Windows
標頭 audiomediatype.h