jamulus/src/vstmain.h

71 lines
2.6 KiB
C
Raw Normal View History

2010-03-05 07:02:21 +01:00
/******************************************************************************\
2019-06-16 11:31:09 +02:00
* Copyright (c) 2004-2019
2010-03-05 07:02:21 +01:00
*
* Author(s):
* Volker Fischer
*
******************************************************************************
*
* 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.
*
* 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 Street, Fifth Floor, Boston, MA 02110-1301, USA
2010-03-05 07:02:21 +01:00
*
\******************************************************************************/
#if !defined ( LLCONVST_HOIHGE76G34528_3_434DFGUHF1912__INCLUDED_ )
#define LLCONVST_HOIHGE76G34528_3_434DFGUHF1912__INCLUDED_
// copy the VST SDK in the llcon/windows directory: "llcon/windows/vstsdk2.4" to
// get it work
#include "audioeffectx.h"
2010-03-27 08:44:25 +01:00
#include <qtimer.h>
#include "global.h"
#include "client.h"
2010-03-05 07:02:21 +01:00
/* Definitions ****************************************************************/
// timeout after which the llcon client is stopped
#define VST_STOP_TIMER_INTERVAL 1000
2010-03-05 07:02:21 +01:00
/* Classes ********************************************************************/
2010-03-28 18:13:58 +02:00
class CLlconVST : public QObject, public AudioEffectX
2010-03-05 07:02:21 +01:00
{
2010-03-27 08:44:25 +01:00
Q_OBJECT
2010-03-05 07:02:21 +01:00
public:
2019-06-16 11:31:09 +02:00
CLlconVST ( audioMasterCallback AudioMaster );
2010-03-05 07:02:21 +01:00
2019-06-16 11:31:09 +02:00
virtual void processReplacing ( float** pvIn, float** pvOut, VstInt32 iNumSamples );
2010-03-05 07:02:21 +01:00
virtual void setProgramName ( char* cName ) { vst_strncpy ( strProgName, cName, kVstMaxProgNameLen ); }
virtual void getProgramName ( char* cName ) { vst_strncpy ( cName, strProgName, kVstMaxProgNameLen ); }
virtual bool getEffectName ( char* cString ) { return GetName ( cString ); }
2019-06-16 11:31:09 +02:00
virtual bool getVendorString ( char* cString ) { return GetName ( cString ); }
virtual bool getProductString ( char* cString ) { return GetName ( cString ); }
2010-03-05 07:02:21 +01:00
virtual VstInt32 getVendorVersion () { return 1000; }
protected:
bool GetName ( char* cName );
2019-06-16 11:31:09 +02:00
char strProgName[kVstMaxProgNameLen + 1];
2010-03-27 08:44:25 +01:00
CClient Client;
2010-03-28 18:13:58 +02:00
QTimer TimerOnOff;
protected slots:
void OnTimerOnOff();
2010-03-05 07:02:21 +01:00
};
#endif /* !defined ( LLCONVST_HOIHGE76G34528_3_434DFGUHF1912__INCLUDED_ ) */