PyIDirectSoundBuffer.SetFormat

SetFormat(format)

Sets the format of the primary sound buffer for the application. Whenever this application has the input focus, DirectSound will set the primary buffer to the specified format.

Parameters

format : WAVEFORMATEX

A WAVEFORMATEX object that describes the new format for the primary sound buffer.