From 0e96d0cae4f978d2e746ca304c06869f8b0236b5 Mon Sep 17 00:00:00 2001 From: Werner Schweer Date: Fri, 13 Oct 2006 11:37:29 +0000 Subject: fix aux send volume range --- muse/muse/audioinput.cpp | 1 - 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; -- cgit v1.2.3