aboutsummaryrefslogtreecommitdiff
path: root/src/ui/eqpreset.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-12-16 22:01:41 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-12-16 22:01:41 +0000
commitfbf6df0e267774e4cfa32678176869095fa28986 (patch)
treed4438e5d329f8423fa37f33cb3990ea772fcfda3 /src/ui/eqpreset.cpp
parent8ab140dace337d1d413433510a87e161759ccc53 (diff)
downloadqmmp-fbf6df0e267774e4cfa32678176869095fa28986.tar.gz
qmmp-fbf6df0e267774e4cfa32678176869095fa28986.tar.bz2
qmmp-fbf6df0e267774e4cfa32678176869095fa28986.zip
improved equalizer precision
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@689 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/eqpreset.cpp')
-rw-r--r--src/ui/eqpreset.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/eqpreset.cpp b/src/ui/eqpreset.cpp
index 760dea9d2..533dd4f67 100644
--- a/src/ui/eqpreset.cpp
+++ b/src/ui/eqpreset.cpp
@@ -31,26 +31,26 @@ EQPreset::EQPreset()
EQPreset::~EQPreset()
{}
-void EQPreset::setGain(int n, int value)
+void EQPreset::setGain(int n, double value)
{
if(n > 9 || n < 0)
return;
m_bands[n] = value;
}
-void EQPreset::setPreamp(int preamp)
+void EQPreset::setPreamp(double preamp)
{
m_preamp = preamp;
}
-int EQPreset::gain(int n)
+double EQPreset::gain(int n)
{
if(n > 9 || n < 0)
return 0;
return m_bands[n];
}
-int EQPreset::preamp()
+double EQPreset::preamp()
{
return m_preamp;
}