mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-30 17:49:02 +00:00
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.
This commit is contained in:
parent
965a1a253c
commit
e3fb720cd1
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user