summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-09-19 20:45:47 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-09-19 20:45:47 +0200
commitd705f95d34afc447a1375cf0be24cf47b87ae686 (patch)
tree1d2d20e61cc6ae2b05f2eb7c18afbcc7871a47fe
parentad8cea4ad365658b6bee9ef5c247a042de9061cb (diff)
Empty mixer string ignores mixer initialisation (for when not needed).
-rw-r--r--src/audioin.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/audioin.cc b/src/audioin.cc
index 8ed8eac..cc6fffc 100644
--- a/src/audioin.cc
+++ b/src/audioin.cc
@@ -144,7 +144,9 @@ AudioIn::AudioIn(std::string device, std::string mixer_interface,
// Write the parameters to the driver
rc = snd_pcm_hw_params(handle, params);
if (rc < 0) throw UnableToSetHWParams();
-
+
+ if(mixer_interface == "") return;
+
//
// Set up mixer
//