Platform SDK: DirectX

IDirectMusicPerformance::AddNotificationType

IDirectMusicPerformance::AddNotificationType メソッドは、パフォーマンスに通知タイプを追加する。AddNotificationType メソッドを呼び出すと、すべてのセグメントとトラックは新しい通知によって自動的に更新される。

HRESULT AddNotificationType(
  REFGUID rguidNotificationType
);

パラメータ

rguidNotificationType
追加される通知タイプの識別子への参照 (C++) またはアドレス (C)。定義済みのタイプについては、「DMUS_NOTIFICATION_PMSG」を参照すること。アプリケーションは、カスタム トラックについて独自のタイプを定義できる。

戻り値

成功すれば S_OK を返す。

失敗すれば次のエラー値のいずれかを返す。

E_OUTOFMEMORY
E_POINTER

動作環境

  Windows NT/2000 : Windows 2000 が必要。
  Windows 95/98 : Windows 95 以降が必要。Windows 95 用に再配布可能な形で使用可能。
  ヘッダー : dmusici.h で宣言。

参照

IDirectMusicPerformance::RemoveNotificationTypeIDirectMusicSegment::AddNotificationTypeIDirectMusicTrack::AddNotificationType通知とイベントの処理