Platform SDK: DirectX

IDirectSoundCaptureBuffer::Initialize

IDirectSoundCaptureBuffer::Initialize メソッドは、DirectSoundCaptureBuffer オブジェクトがまだ初期化されていない場合、このオブジェクトを初期化する。

HRESULT Initialize(
  LPDIRECTSOUNDCAPTURE lpDirectSoundCapture,  
  LPCDSCBUFFERDESC lpcDSCBufferDesc             
);

パラメータ

lpDirectSoundCapture
DirectSoundCaptureBuffer オブジェクトに関連付けられた DirectSoundCapture オブジェクトのアドレス。
lpcDSCBufferDesc
このサウンド バッファを初期化するために使われる値を保持する DSBUFFERDESC 構造体のアドレス。

戻り値

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

DSERR_INVALIDPARAM
DSERR_ALREADYINITIALIZED

注意

IDirectSoundCapture::CreateCaptureBuffer メソッドは内部で IDirectSoundCaptureBuffer::Initialize メソッドを呼び出すので、現在のリリースの DirectSound では Initialize を明示的に呼び出す必要はない。Initialize メソッドは将来の拡張性に備えて用意されている。

動作環境

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

参照

DSBUFFERDESCIDirectSoundCapture::CreateCaptureBuffer