summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-01-31 16:40:57 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2012-01-31 16:40:57 +0100
commite3fb720cd11cf5485f30664b3fd0526249081ed2 (patch)
tree6935bb5942bfee5accf0dbe8c1897aa0bf7c30c4 /client
parent965a1a253cc9def4d040d9ba5c03f25279af8ea7 (diff)
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.
Diffstat (limited to 'client')
-rw-r--r--client/x11/record.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/x11/record.cpp b/client/x11/record.cpp
index bd76cee6..535a8c9e 100644
--- a/client/x11/record.cpp
+++ b/client/x11/record.cpp
@@ -96,7 +96,7 @@ bool WaveRecorder::init(uint32_t sampels_per_sec,
uint32_t channels)
{
const int frame_size = WaveRecordAbstract::FRAME_SIZE;
- const char* pcm_device = "hw:0,0"; // "default" ???
+ const char* pcm_device = "default";
snd_pcm_format_t format;
int err;