Microsoft DirectX 8.1 (Visual Basic)

DirectSound8

The DirectSound8 class represents the DirectSound playback system. Applications use the methods of the DirectSound8 class to create buffer objects and set up the audio environment.

An object of this class is obtained by using the DirectX8.DirectSoundCreate method.

The DirectSound8 class has the following methods.

Buffer creation

Method Description
CreatePrimarySoundBuffer Creates a primary buffer object.
CreateSoundBuffer Creates a buffer to hold a sequence of audio samples.
CreateSoundBufferFromFile Creates a buffer and fills it with data from a file.
CreateSoundBufferFromResource Creates a buffer and fills it with data from a resource.
DuplicateSoundBuffer Creates a new buffer that duplicates or shares the original buffer's memory.

Devices

Method Description
GetCaps Retrieves the capabilities of the hardware device.

Initialization

Method Description
SetCooperativeLevel Sets the cooperative level of the application for this sound device.

Speaker configuration

Method Description
GetSpeakerConfig Retrieves the speaker configuration.
SetSpeakerConfig Specifies the speaker configuration of the DirectSound object.