File: CLAMVstPlugin.cxx

package info (click to toggle)
clam 1.4.0-6
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 17,836 kB
  • ctags: 20,981
  • sloc: cpp: 92,504; python: 9,721; ansic: 1,602; xml: 444; sh: 239; makefile: 153; perl: 54; asm: 15
file content (29 lines) | stat: -rw-r--r-- 821 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <CLAM/EmbeddedFile.hxx>
#include "VstNetworkExporter.hxx"
#include "QClamVstEditor.hxx"
#include <iostream>

// TODO: This cannot be used until mingw is fixed. See 'Files.s'
//CLAM_EMBEDDED_FILE(embededNetwork,"wire.xml")
//CLAM_EMBEDDED_FILE(embededUI, "interface.ui")
extern const char embededUI[];
extern const char embededNetwork[];

AudioEffect* createEffectInstance (audioMasterCallback audioMaster)
{
	static CLAM::VstNetworkExporter exporter(
		audioMaster,
		embededNetwork,
		CCONST('C','L','A','M'),
		"CLAM effect", // Effect name
		"Example of CLAM based VST plugin", // Product string
		"CLAM Project", // Vendor
		10 // Version
	);
	CLAM::VstNetworkExporter::Plugin * effect = exporter.createEffect(audioMaster);
	if (!effect) return 0;
	new QClamVstEditor(effect, embededUI);
	return effect;
}