ホーム › Media.Audio.DirectSound › IDirectSoundNotify
IDirectSoundNotify
COMメソッド 1
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT SetNotificationPositions(DWORD dwPositionNotifies, DSBPOSITIONNOTIFY* pcPositionNotifies)
| dwPositionNotifies | DWORD | in | 設定する位置通知の個数。0で全通知を解除する。 |
| pcPositionNotifies | DSBPOSITIONNOTIFY* | in | 各通知の再生位置とシグナル対象イベントを記述するDSBPOSITIONNOTIFY配列へのポインタ。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDirectSoundNotify "{B0210783-89CD-11D0-AF08-00A0C925CD16}" #usecom global IDirectSoundNotify IID_IDirectSoundNotify "{}" #comfunc global IDirectSoundNotify_SetNotificationPositions 3 int,var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IDirectSoundNotify "{B0210783-89CD-11D0-AF08-00A0C925CD16}" #usecom global IDirectSoundNotify IID_IDirectSoundNotify "{}" #comfunc global IDirectSoundNotify_SetNotificationPositions 3 int,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。