ホーム › Media.Audio.Apo › IAudioProcessingObjectPreferredFormatSupport
IAudioProcessingObjectPreferredFormatSupport
COMメソッド 2
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT GetPreferredInputFormat(IAudioMediaType* outputFormat, IAudioMediaType** preferredFormat)
| outputFormat | IAudioMediaType* | in | 確定済みの出力フォーマットを示すIAudioMediaType。これに整合する入力形式を問い合わせる。 |
| preferredFormat | IAudioMediaType** | out | 指定出力に対しAPOが推奨する入力フォーマットの受け取り先。要Release。 |
vtbl 4 HRESULT GetPreferredOutputFormat(IAudioMediaType* inputFormat, IAudioMediaType** preferredFormat)
| inputFormat | IAudioMediaType* | in | 確定済みの入力フォーマットを示すIAudioMediaType。これに整合する出力形式を問い合わせる。 |
| preferredFormat | IAudioMediaType** | 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 指定が可能。