KMixer Volume and Mute Controls

Changes made to volume-level and mute controls on KMixer inputs can affect audio data that was submitted to KMixer before the change was requested. Also, volume changes are abrupt, and KMixer does nothing to smooth out the transition from the old volume level to the new one.

KMixer wakes up approximately every 10 milliseconds to mix another 10 milliseconds of data from all its input streams into a 10-millisecond output buffer, which it submits to the audio driver to be played. (This timing is specific to the current implementation of KMixer and may change in future versions of Microsoft Windows.)

When an application program calls IDirectSoundBuffer::SetVolume on an unaccelerated DirectSound buffer, for example, the call generates a KSPROPERTY_AUDIO_VOLUMELEVEL set-property request to a KMixer sink (input) pin. KMixer applies the new volume setting just as soon as it wakes up and begins processing the next 10-millisecond buffer queued at the pin. Note that this buffer might have arrived at the pin before the volume-level property request but is still affected by the request. KMixer does not attempt to perform a gradual transition from the old volume setting to the new one. Instead, the full volume change takes effect with the very first sample that KMixer reads from the buffer.

Send comments about this topic to Microsoft