|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
When there are no sounds playing, DirectSound stops the mixer engine and halts DMA (direct memory access) activity. If your application has frequent short intervals of silence, the overhead of starting and stopping the mixer each time a sound is played may be worse than the DMA overhead if you kept the mixer active. Also, some sound hardware or drivers may produce unwanted audible artifacts from frequent starting and stopping of playback. If your application is playing audio almost continuously with only short breaks of silence, you can force the mixer engine to remain active by calling the IDirectSoundBuffer::Playmethod for the primary buffer. The mixer will continue to run silently.
To resume the default behavior of stopping the mixer engine when there are no sounds playing, call the IDirectSoundBuffer::Stopmethod for the primary buffer.
For more information, see Access to the Primary Buffer.
Last updated on Tuesday, May 18, 2004