diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-12-07 19:17:57 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-12-07 19:17:57 +0000 |
| commit | f3ebf1f3ec5ac77633db0509e12f87abb066c334 (patch) | |
| tree | 4c8e5be9ed3b2d01071dd1fe7137eeb4ff0eda56 /src/plugins/Effect/ladspa/ladspahost.h | |
| parent | 1128dce7d78ce44f6157259efc73b38ae7005133 (diff) | |
| download | qmmp-f3ebf1f3ec5ac77633db0509e12f87abb066c334.tar.gz qmmp-f3ebf1f3ec5ac77633db0509e12f87abb066c334.tar.bz2 qmmp-f3ebf1f3ec5ac77633db0509e12f87abb066c334.zip | |
enabled ladspa plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1427 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Effect/ladspa/ladspahost.h')
| -rw-r--r-- | src/plugins/Effect/ladspa/ladspahost.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/plugins/Effect/ladspa/ladspahost.h b/src/plugins/Effect/ladspa/ladspahost.h index c73d81ab3..f97e54c08 100644 --- a/src/plugins/Effect/ladspa/ladspahost.h +++ b/src/plugins/Effect/ladspa/ladspahost.h @@ -1,6 +1,7 @@ /*************************************************************************** - * Copyright (C) 2009 by Ilya Kotov * - * forkotov02@hotmail.ru * + * Copyright (C) 2002,2003 Nick Lamb <njl195@zepler.org.uk> * + * Copyright (C) 2005 Giacomo Lozito <city_hunter@users.sf.net> * + * Copyright (C) 2009 by Ilya Kotov <forkotov02@hotmail.ru> * * * * 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 * @@ -22,7 +23,7 @@ #include <QMutex> #include <QList> -#include <qmmp/effect.h> +#include <QObject> #include "ladspa.h" class QWidget; @@ -73,25 +74,23 @@ public: }; -class LADSPAHost : public Effect +class LADSPAHost : public QObject { +Q_OBJECT public: - LADSPAHost(); + LADSPAHost(QObject *parent); virtual ~LADSPAHost(); - ulong process(char *in_data, const ulong size, char **out_data); + int applyEffect(qint16 *d, int length); void configure(quint32 freq, int chan, int res); QList <LADSPAPlugin *> plugins(); QList <LADSPAEffect *> runningPlugins(); LADSPAEffect *addPlugin(LADSPAPlugin * plugin); void unload(LADSPAEffect *instance); - static LADSPAHost* instance(); private: - int applyEffect(qint16 *d, int length); - void bootPlugin(LADSPAEffect *instance); void findAllPlugins(); void findPlugins(const QString &path); @@ -105,6 +104,8 @@ private: LADSPA_Data m_left[MAX_SAMPLES], m_right[MAX_SAMPLES], m_trash[MAX_SAMPLES]; static LADSPAHost *m_instance; + int m_chan, m_prec; + quint32 m_freq; }; #endif |
