Win32 API 日本語リファレンス
ホームMedia.Audio.Apo › IAudioProcessingObjectPreferredFormatSupport

IAudioProcessingObjectPreferredFormatSupport

COM
IID51cbd3c4-f1f3-4d2f-a0e1-7e9c4dd0feb3継承元IUnknown自前メソッド開始 vtbl3

メソッド 2

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 3 HRESULT GetPreferredInputFormat(IAudioMediaType* outputFormat, IAudioMediaType** preferredFormat)
outputFormatIAudioMediaType*in確定済みの出力フォーマットを示すIAudioMediaType。これに整合する入力形式を問い合わせる。
preferredFormatIAudioMediaType**out指定出力に対しAPOが推奨する入力フォーマットの受け取り先。要Release。
vtbl 4 HRESULT GetPreferredOutputFormat(IAudioMediaType* inputFormat, IAudioMediaType** preferredFormat)
inputFormatIAudioMediaType*in確定済みの入力フォーマットを示すIAudioMediaType。これに整合する出力形式を問い合わせる。
preferredFormatIAudioMediaType**out指定入力に対しAPOが推奨する出力フォーマットの受け取り先。要Release。

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"

#define global IID_IAudioProcessingObjectPreferredFormatSupport "{51CBD3C4-F1F3-4D2F-A0E1-7E9C4DD0FEB3}"
#usecom global IAudioProcessingObjectPreferredFormatSupport IID_IAudioProcessingObjectPreferredFormatSupport "{}"
#comfunc global IAudioProcessingObjectPreferredFormatSupport_GetPreferredInputFormat   3 sptr,sptr
#comfunc global IAudioProcessingObjectPreferredFormatSupport_GetPreferredOutputFormat  4 sptr,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。