ホーム › Media.Audio.Apo › IAudioProcessingObjectNotifications2
IAudioProcessingObjectNotifications2
COMメソッド 1
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 5 HRESULT GetApoNotificationRegistrationInfo2(APO_NOTIFICATION_TYPE maxApoNotificationTypeSupported, APO_NOTIFICATION_DESCRIPTOR** apoNotifications, DWORD* count)
| maxApoNotificationTypeSupported | APO_NOTIFICATION_TYPE | in | OSがサポートする通知種別の最大値を示すAPO_NOTIFICATION_TYPE。APOは互換範囲内で登録情報を返す。 |
| apoNotifications | APO_NOTIFICATION_DESCRIPTOR** | out | APOが受信を希望する通知記述子配列の受け取り先。CoTaskMemFreeで解放する。 |
| count | DWORD* | out | apoNotificationsに返された記述子の個数を受け取るDWORDポインタ。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IAudioProcessingObjectNotifications2 "{CA2CFBDE-A9D6-4EB0-BC95-C4D026B380F0}" #usecom global IAudioProcessingObjectNotifications2 IID_IAudioProcessingObjectNotifications2 "{}" #comfunc global IAudioProcessingObjectNotifications2_GetApoNotificationRegistrationInfo2 5 int,var,var ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。#define global IID_IAudioProcessingObjectNotifications2 "{CA2CFBDE-A9D6-4EB0-BC95-C4D026B380F0}" #usecom global IAudioProcessingObjectNotifications2 IID_IAudioProcessingObjectNotifications2 "{}" #comfunc global IAudioProcessingObjectNotifications2_GetApoNotificationRegistrationInfo2 5 int,sptr,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。