Skip to content
Snippets Groups Projects
  1. Jan 15, 2021
  2. Feb 06, 2020
  3. Jan 31, 2020
    • Volker Rümelin's avatar
      audio: fix bug 1858488 · fdc8c5f4
      Volker Rümelin authored
      The combined generic buffer management code and buffer run out
      code in function audio_generic_put_buffer_out has a problematic
      behaviour. A few hundred milliseconds after playback starts the
      mixing buffer and the generic buffer are nearly full and the
      following pattern can be seen.
      
      On first call of audio_pcm_hw_run_out the buffer run code in
      audio_generic_put_buffer_out writes some data to the audio
      hardware but the generic buffer will fill faster and is full
      when audio_pcm_hw_run_out returns. This is because emulated
      audio devices can produce playback data at a higher rate than
      the audio backend hardware consumes this data.
      
      On next call of audio_pcm_hw_run_out the buffer run code in
      audio_generic_put_buffer_out writes some data to the audio
      hardware but no audio data is transferred to the generic buffer
      because the buffer is already full.
      
      Then the pattern repeats. For the emulated audio device this
      looks like the audio timer period has doubled.
      
      This patch splits the combined generic buffer management code
      and buffer run out code and calls the buffer run out code after
      buffer management code to break this pattern.
      
      The bug report is for the wav audio backend. But the problem is
      not limited to this backend. All audio backends which use the
      audio_generic_put_buffer_out function show this problem.
      
      Buglink: https://bugs.launchpad.net/qemu/+bug/1858488
      
      
      Signed-off-by: default avatarVolker Rümelin <vr_qemu@t-online.de>
      Message-Id: <20200123074943.6699-5-vr_qemu@t-online.de>
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      fdc8c5f4
  4. Oct 18, 2019
  5. Sep 23, 2019
  6. Aug 21, 2019
  7. Mar 11, 2019
  8. Jan 22, 2019
  9. Mar 12, 2018
  10. Mar 05, 2018
  11. Feb 06, 2018
  12. Jul 12, 2016
  13. Jun 15, 2015
  14. Jun 21, 2013
  15. Apr 17, 2012
  16. Jan 12, 2011
  17. Nov 09, 2010
    • Gerd Hoffmann's avatar
      spice: add audio · 3e313753
      Gerd Hoffmann authored
      
      Add support for the spice audio interface.  With this patch applied
      audio can be forwarded over the network from/to the spice client.  Both
      recording and playback is supported.
      
      The driver is first in the driver list, but the can_be_default flag is
      set only in case spice is active.  So if you have the spice protocol
      enabled the spice audio driver is the default one, otherwise whatever
      comes first after spice in the list.  Overriding the default using
      QEMU_AUDIO_DRV works in any case.
      
      [ v2: audio codestyle: add spaces before open parenthesis ]
      [ v2: add const to silence array ]
      
      Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
      Cc: malc <av1474@comtv.ru>
      Signed-off-by: default avatarmalc <av1474@comtv.ru>
      3e313753
  18. Sep 22, 2010
  19. Oct 14, 2009
  20. Oct 09, 2009
  21. Sep 18, 2009
  22. Sep 12, 2009
    • Blue Swirl's avatar
      Fix sys-queue.h conflict for good · 72cf2d4f
      Blue Swirl authored
      
      Problem: Our file sys-queue.h is a copy of the BSD file, but there are
      some additions and it's not entirely compatible. Because of that, there have
      been conflicts with system headers on BSD systems. Some hacks have been
      introduced in the commits 15cc9235,
      f40d7537,
      96555a96 and
      3990d09a but the fixes were fragile.
      
      Solution: Avoid the conflict entirely by renaming the functions and the
      file. Revert the previous hacks.
      
      Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
      72cf2d4f
  23. Sep 11, 2009
  24. Aug 11, 2009
  25. May 13, 2009
Loading