ホーム › Media.Audio.DirectSound › IDirectSoundFXDistortion
IDirectSoundFXDistortion
COMメソッド 2
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT SetAllParameters(DSFXDistortion* pcDsFxDistortion)
| pcDsFxDistortion | DSFXDistortion* | in | 設定するディストーション効果パラメータを保持するDSFXDistortion構造体へのポインタ。 |
vtbl 4 HRESULT GetAllParameters(DSFXDistortion* pDsFxDistortion)
| pDsFxDistortion | DSFXDistortion* | out | 現在のディストーション効果パラメータを受け取るDSFXDistortion構造体へのポインタ。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDirectSoundFXDistortion "{8ECF4326-455F-4D8B-BDA9-8D5D3E9E3E0B}" #usecom global IDirectSoundFXDistortion IID_IDirectSoundFXDistortion "{}" #comfunc global IDirectSoundFXDistortion_SetAllParameters 3 var #comfunc global IDirectSoundFXDistortion_GetAllParameters 4 var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IDirectSoundFXDistortion "{8ECF4326-455F-4D8B-BDA9-8D5D3E9E3E0B}" #usecom global IDirectSoundFXDistortion IID_IDirectSoundFXDistortion "{}" #comfunc global IDirectSoundFXDistortion_SetAllParameters 3 sptr #comfunc global IDirectSoundFXDistortion_GetAllParameters 4 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。