diff options
author | Werner Schweer <ws.seh.de> | 2006-10-13 11:37:29 +0000 |
---|---|---|
committer | Werner Schweer <ws.seh.de> | 2006-10-13 11:37:29 +0000 |
commit | 0e96d0cae4f978d2e746ca304c06869f8b0236b5 (patch) | |
tree | 759ee9965684d2669a13dcd978f0e27f68212254 | |
parent | acdc9dde3922777da489aaf2666bbba3a6115956 (diff) |
fix aux send volume range
-rw-r--r-- | muse/muse/audioinput.cpp | 1 | ||||
-rw-r--r-- | muse/muse/auxplugin.cpp | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/muse/muse/audioinput.cpp b/muse/muse/audioinput.cpp index ef9ce7a2..93bf7b5c 100644 --- a/muse/muse/audioinput.cpp +++ b/muse/muse/audioinput.cpp @@ -32,7 +32,6 @@ AudioInput::AudioInput() { // set Default for Input Ports: _mute = true; -//TODO setVolume(0.0); for (int i = 0; i < MAX_CHANNELS; ++i) jackPorts[i] = 0; _channels = 0; diff --git a/muse/muse/auxplugin.cpp b/muse/muse/auxplugin.cpp index e313e630..c64c7cde 100644 --- a/muse/muse/auxplugin.cpp +++ b/muse/muse/auxplugin.cpp @@ -20,6 +20,7 @@ #include "globaldefs.h" #include "auxplugin.h" +#include "gconfig.h" AuxPlugin* auxPlugin; @@ -40,8 +41,8 @@ void AuxPlugin::range(int idx, double* min, double* max) const { switch(idx) { case 0: // volume - *min = -60.0; - *max = 10.0; + *min = pow(10.0f, config.minSlider * 0.05f); + *max = 2.0; break; case 1: // pan *min = -1.0; |