audio: split sample conversion and volume mixing
authorMichael Walle <michael@walle.cc>
Wed, 5 Jan 2011 00:05:47 +0000 (01:05 +0100)
committermalc <av1474@comtv.ru>
Wed, 12 Jan 2011 15:36:22 +0000 (18:36 +0300)
commit11d95b8ebea9384db20230103a13f6476dbc0b41
tree125088eea53cc55083a5b69e927937b89db22645
parent7726f704f58a83344b6a1e992cd222441e7cd359
audio: split sample conversion and volume mixing

Refactor the volume mixing, so it can be reused for capturing devices.
Additionally, it removes superfluous multiplications with the nominal
volume within the hardware voice code path.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: malc <av1474@comtv.ru>
13 files changed:
audio/alsaaudio.c
audio/audio.c
audio/audio_int.h
audio/dsoundaudio.c
audio/esdaudio.c
audio/fmodaudio.c
audio/mixeng.c
audio/mixeng.h
audio/mixeng_template.h
audio/ossaudio.c
audio/paaudio.c
audio/spiceaudio.c
audio/winwaveaudio.c