traverso-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Traverso-commit] traverso/src/engine AudioPlugin.h


From: Remon Sijrier
Subject: [Traverso-commit] traverso/src/engine AudioPlugin.h
Date: Wed, 04 Apr 2007 19:46:13 +0000

CVSROOT:        /sources/traverso
Module name:    traverso
Changes by:     Remon Sijrier <r_sijrier>       07/04/04 19:46:13

Removed files:
        src/engine     : AudioPlugin.h 

Log message:
        and again it's removed, how many times do I have to remove this #$@) 
file ??? 

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/engine/AudioPlugin.h?cvsroot=traverso&r1=1.1&r2=0

Patches:
Index: AudioPlugin.h
===================================================================
RCS file: AudioPlugin.h
diff -N AudioPlugin.h
--- AudioPlugin.h       20 Apr 2006 14:50:44 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,113 +0,0 @@
-/*
-    Copyright (C) 2005 Remon Sijrier 
- 
-    This file is part of Traverso
- 
-    Traverso 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.
- 
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
- 
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA.
- 
-    $Id: AudioPlugin.h,v 1.1 2006/04/20 14:50:44 r_sijrier Exp $
-*/
-
-#ifndef AUDIOPLUGIN_H
-#define AUDIOPLUGIN_H
-
-#include <QStringList>
-
-#define SUCCESS 1
-#define NOT_IMPLEMENTED 0
-#define FAILURE -1
-
-class AudioPlugin
-{
-public :
-
-
-        AudioPlugin();
-        virtual ~AudioPlugin();
-
-        //! must be implemented to print a simple hello (for debuggin purposes)
-        virtual void hello()=0;
-
-        //! This function must return a constant char* with a unique ID for
-        //! this plugin. This ID is provided by / team , after
-        //! plugin code audition. (all plugins must be GPL)
-        virtual const char* id() = 0;
-
-        void set_sample_rate(int);
-        void set_channels(int);
-        void set_preview_quality(float);
-        void set_wet_out(float);
-        void set_dry_out(float);
-        void set_pre_gain(float);
-        void set_pos_gain(float);
-
-        float get_preview_quality();
-        float get_wet_out();
-        float get_dry_out();
-        float get_pre_gain();
-        float get_pos_gain();
-
-        //! Return a list of strings with all parameters names for this 
plugin. It will create one control-curve for
-        //! each parameter returned here, PLUS the standard curves : preview 
quality, wet_out, dry_out, pre_gain and pos_gain
-        virtual QStringList* get_parameters() = 0 ;
-
-        // set the parameter to the given value. Called MUST know all 
parameters, which can be
-        // obtained by calling get_parameters()
-        virtual int set_parameter(int parameter, float value) = 0 ;
-
-        // get the parameter into a given float*. Called MUST know all 
parameters, which can be
-        // obtained by calling get_parameters()
-        virtual int get_parameter(int parameter, float* value) = 0 ;
-
-        //! load audio data into the plugin.  Must be implemented by the plugin
-        virtual int load_data( char* pAudioFragment, int pFragmentSize ) = 0 ;
-
-        //! make pre-calculation  Must be implemented by the plugin
-        virtual int prepare() =0 ;
-
-        //! process the effect. Must be implemented by the plugin
-        virtual int process() =0 ;
-
-        //! prepare the tail BEFORE the playback
-        void init_tail(int secs);
-
-        //! let the tail influetiate the next chunk of audio
-        void push_tail(int size);
-
-        //! When a STOP action is performed, reset the tail and make other 
proper adjustments.
-        int cleanup();
-
-        void set_bypass(bool b);
-
-        bool is_bypassed();
-
-protected :
-
-        QStringList* parameterList;
-        bool isBypassed;
-        int tailSize;
-        char* tail;
-        int fragmentSize;
-        char* fragment;
-        int sampleRate;
-        int channels;
-        float previewQuality;
-        float wetOut;
-        float dryOut;
-        float preGain;
-        float posGain;
-};
-
-#endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]