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. You also can use the IDirectSoundBuffer::GetFormat and IDirectSoundBuffer::SetFormat methods to set the format of the sound data in the primary sound buffer.

Note After a secondary sound buffer is created, its format is fixed. If you need a secondary buffer that uses another format, you should create a new sound buffer with this format.