summaryrefslogtreecommitdiff
path: root/libsidplay2/sidplay-libs-2.1.0/libsidutils/include/sidplay/utils/SidFilter.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-19 22:45:01 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-19 22:45:01 +0200
commit2f34377d0352ed5aae777f813bbbadcffacbb579 (patch)
tree17498521f4349cf16af4d47940bccb2885eb9727 /libsidplay2/sidplay-libs-2.1.0/libsidutils/include/sidplay/utils/SidFilter.h
parent49875b085e4c1fa6881a54b482e8439fc1c6daa9 (diff)
passed make distcheck; 0.1.0 release
Diffstat (limited to 'libsidplay2/sidplay-libs-2.1.0/libsidutils/include/sidplay/utils/SidFilter.h')
-rw-r--r--libsidplay2/sidplay-libs-2.1.0/libsidutils/include/sidplay/utils/SidFilter.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/libsidplay2/sidplay-libs-2.1.0/libsidutils/include/sidplay/utils/SidFilter.h b/libsidplay2/sidplay-libs-2.1.0/libsidutils/include/sidplay/utils/SidFilter.h
deleted file mode 100644
index db52aa01..00000000
--- a/libsidplay2/sidplay-libs-2.1.0/libsidutils/include/sidplay/utils/SidFilter.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/***************************************************************************
- SidFilter.cpp - filter type decoding support
- -------------------
- begin : Sun Mar 11 2001
- copyright : (C) 2001 by Simon White
- email : s_a_white@email.com
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-
-#include <sidplay/sidtypes.h>
-#include "libini.h"
-
-// For compatibilty with libsidplay2-0.7.
-#ifndef sid_filter_t
-typedef int sid_fc_t[2];
-typedef struct
-{
- sid_fc_t cutoff[0x800];
- uint_least16_t points;
-} sid_filter_t;
-#define sid_filter_t sid_filter_t
-#endif
-
-#ifndef SIDPLAY1_EMUCFG_H
-// For compatibilty with libsidplay1
-// If you use this and libsidplay1 headers, make sure
-// those are included first
-// Default filter parameters.
-const float SIDEMU_DEFAULTFILTERFS = (float) 400.0;
-const float SIDEMU_DEFAULTFILTERFM = (float) 60.0;
-const float SIDEMU_DEFAULTFILTERFT = (float) 0.05;
-#endif // SIDPLAY1_EMUCFG_H
-
-
-class SID_EXTERN SidFilter
-{
-protected:
- bool m_status;
- char *m_errorString;
- sid_filter_t m_filter;
-
-protected:
- void readType1 (ini_fd_t ini);
- void readType2 (ini_fd_t ini);
- void clear ();
-
-public:
- SidFilter ();
- ~SidFilter ();
-
- void read (char *filename);
- void read (ini_fd_t ini, char *heading);
- void calcType2 (double fs, double fm, double ft);
- const char* error (void) { return m_errorString; }
- const sid_filter_t* provide () const;
-
- operator bool () { return m_status; }
- const SidFilter& operator= (const SidFilter &filter);
- const sid_filter_t &operator= (const sid_filter_t &filter);
- const sid_filter_t *operator= (const sid_filter_t *filter);
-};