Platform SDK: DirectX

IDirectSoundBuffer インターフェイス

アプリケーションは IDirectSoundBuffer インターフェイスのメソッドを使って、DirectSoundBuffer オブジェクトの作成と環境設定を行う。

IDirectSound::CreateSoundBuffer メソッドを使ってこのインターフェイスを取得する。

IDirectSoundBuffer インターフェイスのメソッドは、以下のグループにまとめることができる。

情報 GetCaps
  GetFormat
GetStatus
SetFormat
メモリ管理 Initialize
  Restore
再生管理 GetCurrentPosition
  Lock
Play
SetCurrentPosition
Stop
Unlock
サウンド管理 GetFrequency
  GetPan
GetVolume
SetFrequency
SetPan
SetVolume

すべての COM インターフェイスと同様に、IDirectSoundBuffer インターフェイスも IUnknown インターフェイス メソッドを継承する。IUnknown インターフェイスは以下の 3 つのメソッドをサポートする。

IUnknown AddRef
  QueryInterface
Release

LPDIRECTSOUNDBUFFER 型は、IDirectSoundBuffer インターフェイスへのポインタとして定義されている。

typedef struct IDirectSoundBuffer    *LPDIRECTSOUNDBUFFER; 

動作環境

  Windows NT/2000 : Service Pack 3 を適用した Windows NT バージョン 4.0 以降が必要。
  Windows 95/98 : Windows 95 以降が必要。Windows 95 用に再配布可能な形で使用可能。
  ヘッダー : dsound.h で宣言。
  インポート ライブラリ : dsound.lib を使用。