teuf at kemper.freedesktop.org
Tue Jan 31 08:42:15 PST 2012
client/x11/record.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Author: Christophe Fergeau <cfergeau at redhat.com>
Date: Tue Jan 31 16:40:57 2012 +0100
Don't use "hw:0,0" for recording with alsa
We currently hardcode this device when spicec needs to record with
alsa. However, this doesn't interact well with PulseAudio, which
means that if something is already using the recording device, spicec
won't be able to open it again.
Using "default" as the device will let spicec use the PulseAudio
alsa support and will avoid this issue.
diff --git a/client/x11/record.cpp b/client/x11/record.cpp
index bd76cee..535a8c9 100644
@@ -96,7 +96,7 @@ bool WaveRecorder::init(uint32_t sampels_per_sec,
const int frame_size = WaveRecordAbstract::FRAME_SIZE;
- const char* pcm_device = "hw:0,0"; // "default" ???
+ const char* pcm_device = "default";
More information about the Spice-commits