IDirectSoundBuffer::Initialize

HRESULT Initialize(LPDIRECTSOUND lpDirectSound,

LPDSBUFFERDESC lpDSBufferDesc);

Initializes a DirectSoundBuffer object if it has not yet been initialized.

·Returns DSERR_ALREADYINITIALIZED.

lpDirectSound

Address of the DirectSound object associated with this DirectSoundBuffer object.

lpDSBufferDesc

Address of a DSBUFFERDESC structure that contains the values used to initialize this sound buffer.

Because the IDirectSound::CreateSoundBuffer method calls IDirectSoundBuffer::Initialize internally, it is not needed for the current release of DirectSound. This method is provided for future extensibility.