]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: wire up support for timer period audio setting
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 3 Jun 2021 08:15:36 +0000 (09:15 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 4 Jun 2021 11:08:03 +0000 (12:08 +0100)
Closes: https://gitlab.com/libvirt/libvirt/-/issues/171
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
25 files changed:
src/qemu/qemu_command.c
tests/qemuxml2argvdata/audio-alsa-best.args
tests/qemuxml2argvdata/audio-alsa-best.x86_64-latest.args
tests/qemuxml2argvdata/audio-alsa-best.xml
tests/qemuxml2argvdata/audio-coreaudio-best.args
tests/qemuxml2argvdata/audio-coreaudio-best.x86_64-latest.args
tests/qemuxml2argvdata/audio-coreaudio-best.xml
tests/qemuxml2argvdata/audio-file-best.args
tests/qemuxml2argvdata/audio-file-best.x86_64-latest.args
tests/qemuxml2argvdata/audio-file-best.xml
tests/qemuxml2argvdata/audio-none-best.args
tests/qemuxml2argvdata/audio-none-best.x86_64-latest.args
tests/qemuxml2argvdata/audio-none-best.xml
tests/qemuxml2argvdata/audio-oss-best.args
tests/qemuxml2argvdata/audio-oss-best.x86_64-latest.args
tests/qemuxml2argvdata/audio-oss-best.xml
tests/qemuxml2argvdata/audio-pulseaudio-best.args
tests/qemuxml2argvdata/audio-pulseaudio-best.x86_64-latest.args
tests/qemuxml2argvdata/audio-pulseaudio-best.xml
tests/qemuxml2argvdata/audio-sdl-best.args
tests/qemuxml2argvdata/audio-sdl-best.x86_64-latest.args
tests/qemuxml2argvdata/audio-sdl-best.xml
tests/qemuxml2argvdata/audio-spice-best.args
tests/qemuxml2argvdata/audio-spice-best.x86_64-latest.args
tests/qemuxml2argvdata/audio-spice-best.xml

index 4ed82ed570da14d3d5151dbea48dbc401fdc4205..7834fc2130c74bcf35b7750447630adecdfb0a02 100644 (file)
@@ -7602,6 +7602,10 @@ qemuBuildAudioCommandLineArg(virCommand *cmd,
                       def->id,
                       qemuAudioDriverTypeToString(def->type));
 
+    if (def->timerPeriod)
+        virBufferAsprintf(&buf, ",timer-period=%u",
+                          def->timerPeriod);
+
     qemuBuildAudioCommonArg(&buf, "in", &def->input);
     qemuBuildAudioCommonArg(&buf, "out", &def->output);
 
@@ -7791,6 +7795,10 @@ qemuBuildAudioCommandLineEnv(virCommand *cmd,
     virCommandAddEnvPair(cmd, "QEMU_AUDIO_DRV",
                          qemuAudioDriverTypeToString(audio->type));
 
+    if (audio->timerPeriod)
+        virCommandAddEnvFormat(cmd, "QEMU_AUDIO_TIMER_PERIOD=%u",
+                               audio->timerPeriod);
+
     qemuBuildAudioCommonEnv(cmd, "QEMU_AUDIO_ADC_", &audio->input);
     qemuBuildAudioCommonEnv(cmd, "QEMU_AUDIO_DAC_", &audio->output);
 
index 6db6d3739feb8027ce88297dd0a333adcbc98197..89b0faed0d23488da92827e818f7dea535ca85ba 100644 (file)
@@ -7,6 +7,7 @@ XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
 XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
 XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
 QEMU_AUDIO_DRV=alsa \
+QEMU_AUDIO_TIMER_PERIOD=50 \
 QEMU_AUDIO_ADC_FIXED_SETTINGS=on \
 QEMU_AUDIO_ADC_VOICES=1 \
 QEMU_AUDIO_ADC_FIXED_FREQ=44100 \
index 9a4456e908e8d19de4dc711278d0ac650ce31249..0fd84746db07e6ce0e35f9a2cc0920c39944d9cf 100644 (file)
@@ -30,6 +30,6 @@ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
 -blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
 -blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
 -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \
--audiodev id=audio1,driver=alsa,in.mixing-engine=on,in.fixed-settings=on,in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,out.channels=4,out.format=f32,in.dev=/dev/dsp0,out.dev=/dev/dsp1 \
+-audiodev id=audio1,driver=alsa,timer-period=50,in.mixing-engine=on,in.fixed-settings=on,in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,out.channels=4,out.format=f32,in.dev=/dev/dsp0,out.dev=/dev/dsp1 \
 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
 -msg timestamp=on
index 1a6d5f4d9fb0733900478916d0b61eda8dc8b873..8fe7b2fe88cc55e3f9ce54e0594a4fee6778e0f7 100644 (file)
@@ -30,7 +30,7 @@
     <controller type='pci' index='0' model='pci-root'/>
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
-    <audio id='1' type='alsa'>
+    <audio id='1' type='alsa' timerPeriod='50'>
       <input mixingEngine='yes' fixedSettings='yes' voices='1' dev='/dev/dsp0'>
         <settings frequency='44100' channels='2' format='s16'/>
       </input>
index 2e12e21c2bd6998cdb98cdef73e1f43dbb811590..1e93de83f3d458ab5f20d56206b076ef97eed594 100644 (file)
@@ -7,6 +7,7 @@ XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
 XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
 XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
 QEMU_AUDIO_DRV=coreaudio \
+QEMU_AUDIO_TIMER_PERIOD=50 \
 QEMU_AUDIO_ADC_FIXED_SETTINGS=on \
 QEMU_AUDIO_ADC_VOICES=1 \
 QEMU_AUDIO_ADC_FIXED_FREQ=44100 \
index c3d3792c8c6b0d129730493b37c63fea125ca08a..3d8b6f33ae19e9050a78e9368f6a39404c6f4310 100644 (file)
@@ -30,6 +30,6 @@ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
 -blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
 -blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
 -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \
--audiodev id=audio1,driver=coreaudio,in.mixing-engine=on,in.fixed-settings=on,in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32,out.buffer-count=42 \
+-audiodev id=audio1,driver=coreaudio,timer-period=50,in.mixing-engine=on,in.fixed-settings=on,in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32,out.buffer-count=42 \
 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
 -msg timestamp=on
index 66c52bb24c702c8e8d82783306260529d58675cc..95dfb1247b9a6ce350848f9c4cdde15a0a8d0b5f 100644 (file)
@@ -30,7 +30,7 @@
     <controller type='pci' index='0' model='pci-root'/>
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
-    <audio id='1' type='coreaudio'>
+    <audio id='1' type='coreaudio' timerPeriod='50'>
       <input mixingEngine='yes' fixedSettings='yes' voices='1'>
         <settings frequency='44100' channels='2' format='s16'/>
       </input>
index 8b520ef3680fd5a65980b01e8355900c1c4c445d..8c9dc220d1c14c9365f02746b85e52006bced06c 100644 (file)
@@ -7,6 +7,7 @@ XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
 XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
 XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
 QEMU_AUDIO_DRV=wav \
+QEMU_AUDIO_TIMER_PERIOD=50 \
 QEMU_AUDIO_ADC_FIXED_SETTINGS=on \
 QEMU_AUDIO_ADC_VOICES=1 \
 QEMU_AUDIO_ADC_FIXED_FREQ=44100 \
index b92c0ca20d6c284e5fb5683ba33c0751f354794f..ff48527de6d00c3e11dd39302414c38724e2c0fe 100644 (file)
@@ -30,6 +30,6 @@ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
 -blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
 -blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
 -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \
--audiodev id=audio1,driver=wav,in.mixing-engine=on,in.fixed-settings=on,in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,out.channels=4,out.format=f32,path=audio.wav \
+-audiodev id=audio1,driver=wav,timer-period=50,in.mixing-engine=on,in.fixed-settings=on,in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,out.channels=4,out.format=f32,path=audio.wav \
 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
 -msg timestamp=on
index 3bd02c3f3707bc4af84a6ed73d86010fb6ed3fc4..87d5607915804d9270959ad2fdf853f287a2545c 100644 (file)
@@ -30,7 +30,7 @@
     <controller type='pci' index='0' model='pci-root'/>
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
-    <audio id='1' type='file' path='audio.wav'>
+    <audio id='1' type='file' timerPeriod='50' path='audio.wav'>
       <input mixingEngine='yes' fixedSettings='yes' voices='1'>
         <settings frequency='44100' channels='2' format='s16'/>
       </input>
index 2f95ff5bfb31f564718833ed5bce2897e5bc2541..f75701dccdc04a83143857fed2b4d71e019709f6 100644 (file)
@@ -7,6 +7,7 @@ XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
 XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
 XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
 QEMU_AUDIO_DRV=none \
+QEMU_AUDIO_TIMER_PERIOD=50 \
 QEMU_AUDIO_ADC_FIXED_SETTINGS=on \
 QEMU_AUDIO_ADC_VOICES=1 \
 QEMU_AUDIO_ADC_FIXED_FREQ=44100 \
index d80a47407b2c5433b8b606d50125a9d56a6782de..feaa72ddbd5183627d902babc3d48841bc98ea2c 100644 (file)
@@ -30,6 +30,6 @@ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
 -blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
 -blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
 -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \
--audiodev id=audio1,driver=none,in.mixing-engine=on,in.fixed-settings=on,in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,out.channels=4,out.format=f32 \
+-audiodev id=audio1,driver=none,timer-period=50,in.mixing-engine=on,in.fixed-settings=on,in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,out.channels=4,out.format=f32 \
 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
 -msg timestamp=on
index df79f705acdeb9e2721c7d89297926ab8c2ee45a..b867d20fb28ee98d015ade1fdfa28bb746daa7cf 100644 (file)
@@ -30,7 +30,7 @@
     <controller type='pci' index='0' model='pci-root'/>
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
-    <audio id='1' type='none'>
+    <audio id='1' type='none' timerPeriod='50'>
       <input mixingEngine='yes' fixedSettings='yes' voices='1'>
         <settings frequency='44100' channels='2' format='s16'/>
       </input>
index 0088a280946bad4e42ac7736f0e748c98e535458..acc66ab91fdef76f194f592255edc365a2776712 100644 (file)
@@ -7,6 +7,7 @@ XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
 XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
 XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
 QEMU_AUDIO_DRV=oss \
+QEMU_AUDIO_TIMER_PERIOD=50 \
 QEMU_AUDIO_ADC_FIXED_SETTINGS=on \
 QEMU_AUDIO_ADC_VOICES=1 \
 QEMU_AUDIO_ADC_FIXED_FREQ=44100 \
index 4fd6091ca6d2deb3e97694f22cce4edd5bc4b0aa..b66fa68bc8f374ae4e102b78ba39f6907c881ac5 100644 (file)
@@ -30,6 +30,6 @@ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
 -blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
 -blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
 -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \
--audiodev id=audio1,driver=oss,in.mixing-engine=on,in.fixed-settings=on,in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,out.channels=4,out.format=f32,in.dev=/dev/dsp0,in.buffer-count=30,in.try-poll=on,out.dev=/dev/dsp1,out.buffer-count=30,out.try-poll=off \
+-audiodev id=audio1,driver=oss,timer-period=50,in.mixing-engine=on,in.fixed-settings=on,in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,out.channels=4,out.format=f32,in.dev=/dev/dsp0,in.buffer-count=30,in.try-poll=on,out.dev=/dev/dsp1,out.buffer-count=30,out.try-poll=off \
 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
 -msg timestamp=on
index 0561724dbee82d5999928cb15410ee8197938c18..bf2fefdac221d7b93b0387f4d622abc6bcd47a76 100644 (file)
@@ -30,7 +30,7 @@
     <controller type='pci' index='0' model='pci-root'/>
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
-    <audio id='1' type='oss'>
+    <audio id='1' type='oss' timerPeriod='50'>
       <input mixingEngine='yes' fixedSettings='yes' voices='1' dev='/dev/dsp0' bufferCount='30' tryPoll='yes'>
         <settings frequency='44100' channels='2' format='s16'/>
       </input>
index 767c87f2df62c558b12b51598ff9de48c6488479..e22816777d5dd3f4db0a9cc01ba632374bdac537 100644 (file)
@@ -7,6 +7,7 @@ XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
 XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
 XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
 QEMU_AUDIO_DRV=pa \
+QEMU_AUDIO_TIMER_PERIOD=50 \
 QEMU_AUDIO_ADC_FIXED_SETTINGS=on \
 QEMU_AUDIO_ADC_VOICES=1 \
 QEMU_AUDIO_ADC_FIXED_FREQ=44100 \
index 2044b89936cc5a1890d17bd294371b9a0c2787d0..eabff7302f18ed0315648813ddf9b09c287dee74 100644 (file)
@@ -30,6 +30,6 @@ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
 -blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
 -blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
 -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \
--audiodev id=audio1,driver=pa,in.mixing-engine=on,in.fixed-settings=on,in.voices=1,in.buffer-length=200,in.frequency=44100,in.channels=2,in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32,in.name=fish,out.name=fish,server=acme.example.org \
+-audiodev id=audio1,driver=pa,timer-period=50,in.mixing-engine=on,in.fixed-settings=on,in.voices=1,in.buffer-length=200,in.frequency=44100,in.channels=2,in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32,in.name=fish,out.name=fish,server=acme.example.org \
 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
 -msg timestamp=on
index bfc4b92e9b8706dc17b52a0d3508b4f5df5b5793..8fd1ca7497242ed1925095474098d27195d2e8ba 100644 (file)
@@ -30,7 +30,7 @@
     <controller type='pci' index='0' model='pci-root'/>
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
-    <audio id='1' type='pulseaudio' serverName='acme.example.org'>
+    <audio id='1' type='pulseaudio' timerPeriod='50' serverName='acme.example.org'>
       <input mixingEngine='yes' fixedSettings='yes' voices='1' bufferLength='200' name='fish'>
         <settings frequency='44100' channels='2' format='s16'/>
       </input>
index 75e641282596f139638cdc0657b396560537b501..5634d463e575ed526a3226ecfe79e4dae301fa2b 100644 (file)
@@ -7,6 +7,7 @@ XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
 XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
 XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
 QEMU_AUDIO_DRV=sdl \
+QEMU_AUDIO_TIMER_PERIOD=50 \
 QEMU_AUDIO_ADC_FIXED_SETTINGS=on \
 QEMU_AUDIO_ADC_VOICES=1 \
 QEMU_AUDIO_ADC_FIXED_FREQ=44100 \
index c4c60772a2dfbe8ed8b2d2f51e4e8d5ec3a2071a..4c8d46598a88c7c001d40d64b0d8dbbb32089dec 100644 (file)
@@ -31,6 +31,6 @@ SDL_AUDIODRIVER=pulseaudio \
 -blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
 -blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
 -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \
--audiodev id=audio1,driver=sdl,in.mixing-engine=on,in.fixed-settings=on,in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \
+-audiodev id=audio1,driver=sdl,timer-period=50,in.mixing-engine=on,in.fixed-settings=on,in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.buffer-length=200,out.frequency=22050,out.channels=4,out.format=f32 \
 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
 -msg timestamp=on
index 29523590af709e67c5709ffcac30e3aebed3f729..79917742f1f39bebfc6ed877546ac823b29cd76a 100644 (file)
@@ -30,7 +30,7 @@
     <controller type='pci' index='0' model='pci-root'/>
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
-    <audio id='1' type='sdl' driver='pulseaudio'>
+    <audio id='1' type='sdl' timerPeriod='50' driver='pulseaudio'>
       <input mixingEngine='yes' fixedSettings='yes' voices='1'>
         <settings frequency='44100' channels='2' format='s16'/>
       </input>
index b295aef236c3977c8b46d5ed099089ac68c4dada..cdb48548165dea6e4be65fdd24c97ee4d34d8384 100644 (file)
@@ -7,6 +7,7 @@ XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
 XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
 XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
 QEMU_AUDIO_DRV=spice \
+QEMU_AUDIO_TIMER_PERIOD=50 \
 QEMU_AUDIO_ADC_FIXED_SETTINGS=on \
 QEMU_AUDIO_ADC_VOICES=1 \
 QEMU_AUDIO_ADC_FIXED_FREQ=44100 \
index 6f0c04d10680053ac36332350a3b450b56049798..4b1d4a2ece3277647c9245acf43b03bdc13162c2 100644 (file)
@@ -30,6 +30,6 @@ XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
 -blockdev '{"driver":"host_cdrom","filename":"/dev/cdrom","node-name":"libvirt-1-storage","auto-read-only":true,"discard":"unmap"}' \
 -blockdev '{"node-name":"libvirt-1-format","read-only":true,"driver":"raw","file":"libvirt-1-storage"}' \
 -device ide-cd,bus=ide.1,unit=0,drive=libvirt-1-format,id=ide0-1-0,bootindex=1 \
--audiodev id=audio1,driver=spice,in.mixing-engine=on,in.fixed-settings=on,in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,out.channels=4,out.format=f32 \
+-audiodev id=audio1,driver=spice,timer-period=50,in.mixing-engine=on,in.fixed-settings=on,in.voices=1,in.frequency=44100,in.channels=2,in.format=s16,out.mixing-engine=on,out.fixed-settings=on,out.voices=2,out.frequency=22050,out.channels=4,out.format=f32 \
 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
 -msg timestamp=on
index a53586032a9cb65c007bf1c145cbb58322bb48dd..8d203c908917acb8dc43e8365d17d50afb15e12e 100644 (file)
@@ -30,7 +30,7 @@
     <controller type='pci' index='0' model='pci-root'/>
     <input type='mouse' bus='ps2'/>
     <input type='keyboard' bus='ps2'/>
-    <audio id='1' type='spice'>
+    <audio id='1' type='spice' timerPeriod='50'>
       <input mixingEngine='yes' fixedSettings='yes' voices='1'>
         <settings frequency='44100' channels='2' format='s16'/>
       </input>