peterdelevoryas / rpms / qemu

Forked from rpms/qemu 2 years ago
Clone

Blame qemu-fix-vnc-audio.patch

5439f9
commit 83617103984eb4d81cf46c94435f3da2c6f33b55
5439f9
Author: malc <av1474@comtv.ru>
5439f9
Date:   Mon Jul 16 18:08:36 2012 +0400
5439f9
5439f9
    audio: Unbreak capturing in mixemu case
5439f9
    
5439f9
    Signed-off-by: malc <av1474@comtv.ru>
5439f9
5439f9
diff --git a/audio/audio.c b/audio/audio.c
5439f9
index 583ee51..1c77389 100644
5439f9
--- a/audio/audio.c
5439f9
+++ b/audio/audio.c
5439f9
@@ -818,6 +818,7 @@ static int audio_attach_capture (HWVoiceOut *hw)
5439f9
         sw->active = hw->enabled;
5439f9
         sw->conv = noop_conv;
5439f9
         sw->ratio = ((int64_t) hw_cap->info.freq << 32) / sw->info.freq;
5439f9
+        sw->vol = nominal_volume;
5439f9
         sw->rate = st_rate_start (sw->info.freq, hw_cap->info.freq);
5439f9
         if (!sw->rate) {
5439f9
             dolog ("Could not start rate conversion for `%s'\n", SW_NAME (sw));