Platform SDK: DirectX

IDirectSoundBuffer

Applications use the methods of the IDirectSoundBuffer interface to create DirectSoundBuffer objects and set up the environment.

The interface is obtained by using the IDirectSound::CreateSoundBuffer method.

The IDirectSoundBuffer methods can be organized into the following groups:

Information GetCaps
  GetFormat
GetStatus
SetFormat
Memory management Initialize
  Restore
Play management GetCurrentPosition
  Lock
Play
SetCurrentPosition
Stop
Unlock
Sound management GetFrequency
  GetPan
GetVolume
SetFrequency
SetPan
SetVolume

All COM interfaces inherit the IUnknown interface methods. This interface supports the following three methods:

IUnknown AddRef
  QueryInterface
Release

The LPDIRECTSOUNDBUFFER type is defined as a pointer to the IDirectSoundBuffer interface:

typedef struct IDirectSoundBuffer    *LPDIRECTSOUNDBUFFER; 

Requirements

  Windows NT/2000: Requires Windows NT 4.0 SP3 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dsound.h.
  Import Library: Use dsound.lib.