aboutsummaryrefslogtreecommitdiff
path: root/src/logscale.h
diff options
context:
space:
mode:
authorvovanec <vovanec@90c681e8-e032-0410-971d-27865f9a5e38>2007-06-23 16:48:01 +0000
committervovanec <vovanec@90c681e8-e032-0410-971d-27865f9a5e38>2007-06-23 16:48:01 +0000
commit2d622fd9bcb8da9dd3f3206e296cd6a701fc9d12 (patch)
treef92135e6cb831e46336dfd4ade47e03ef3a19ac5 /src/logscale.h
parent4b6a6720805c585c89f44fd276b3ace8670514d9 (diff)
downloadqmmp-2d622fd9bcb8da9dd3f3206e296cd6a701fc9d12.tar.gz
qmmp-2d622fd9bcb8da9dd3f3206e296cd6a701fc9d12.tar.bz2
qmmp-2d622fd9bcb8da9dd3f3206e296cd6a701fc9d12.zip
moved into qmmp dir
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@12 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/logscale.h')
-rw-r--r--src/logscale.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/logscale.h b/src/logscale.h
new file mode 100644
index 000000000..d74d25207
--- /dev/null
+++ b/src/logscale.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2000-2001 Brad Hughes <bhughes@trolltech.com>
+//
+// Use, modification and distribution is allowed without limitation,
+// warranty, or liability of any kind.
+//
+
+#ifndef __logscale_h
+#define __logscale_h
+
+
+class LogScale
+{
+public:
+ LogScale(int = 0, int = 0);
+ ~LogScale();
+
+ int scale() const { return s; }
+ int range() const { return r; }
+
+ void setMax(int, int);
+
+ int operator[](int);
+
+
+private:
+ int *indices;
+ int s, r;
+};
+
+
+#endif // __logscale_h