Retrieving Information

The IDirectSoundBuffer::GetCaps method retrieves the capabilities of the DirectSoundBuffer object. Your application can use the IDirectSoundBuffer::GetStatus method to determine if the current sound buffer is playing or if it has stopped.

You can use the IDirectSoundBuffer::GetFormat method to retrieve information about the format of the sound data in the buffer. The IDirectSoundBuffer::GetFormat and IDirectSoundBuffer::SetFormat methods can also be used to set the format of the sound data in the primary buffer.

Note Once a secondary buffer is created, its format is fixed. If a secondary buffer that uses another format is needed, you should create a new sound buffer with the necessary format.