From f3ebf1f3ec5ac77633db0509e12f87abb066c334 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 7 Dec 2009 19:17:57 +0000 Subject: enabled ladspa plugin git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1427 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Effect/ladspa/ladspahost.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/plugins/Effect/ladspa/ladspahost.h') 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 * + * Copyright (C) 2005 Giacomo Lozito * + * Copyright (C) 2009 by Ilya Kotov * * * * 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 #include -#include +#include #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 plugins(); QList 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 -- cgit v1.2.3-13-gbd6f