summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/device_alsa.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/device_alsa.cpp b/src/device_alsa.cpp
index 5a8652f..bfb2c22 100644
--- a/src/device_alsa.cpp
+++ b/src/device_alsa.cpp
@@ -159,6 +159,12 @@ namespace audiere {
"default", "plughw:0,0", "hw:0,0", ""
};
std::string default_device = parameters.getValue("device", devices[0].c_str());
+
+ // replace '.' with ','
+ for (size_t i = 0; i < default_device.length(); i++)
+ if (default_device[i] == '.')
+ default_device[i] = ',';
+
if (default_device != devices[0])
devices[0] = default_device;