diff options
author | Michael Walle <michael@walle.cc> | 2011-01-05 01:05:47 +0100 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2011-01-12 18:36:22 +0300 |
commit | 00e076795f2d6dfa0c078ff5d5ee5d77190cb4b9 (patch) | |
tree | 125088eea53cc55083a5b69e927937b89db22645 /audio/alsaaudio.c | |
parent | 0f136d9e060ad879d0b840274ddfd1955e24fc10 (diff) | |
download | qemu-00e076795f2d6dfa0c078ff5d5ee5d77190cb4b9.zip qemu-00e076795f2d6dfa0c078ff5d5ee5d77190cb4b9.tar.gz qemu-00e076795f2d6dfa0c078ff5d5ee5d77190cb4b9.tar.bz2 |
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>
Diffstat (limited to 'audio/alsaaudio.c')
-rw-r--r-- | audio/alsaaudio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/alsaaudio.c b/audio/alsaaudio.c index 727b9f8..4d72014 100644 --- a/audio/alsaaudio.c +++ b/audio/alsaaudio.c @@ -1097,7 +1097,7 @@ static int alsa_run_in (HWVoiceIn *hw) } } - hw->conv (dst, src, nread, &nominal_volume); + hw->conv (dst, src, nread); src = advance (src, nread << hwshift); dst += nread; |