File: factory_wrapper_vst2.cpp

package info (click to toggle)
zytrax 0%2Bgit20201215-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 2,488 kB
  • sloc: cpp: 41,800; ansic: 3,387; makefile: 8; sh: 3
file content (21 lines) | stat: -rw-r--r-- 618 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

#include "effect_editor_vst2.h"
//for include order, do not delete this comment
#include "audio_effect_provider_vst2.h"
#include "factory_wrapper_vst2.h"

AudioEffectProvider *create_vst2_provider() {
	initialize_vst2_editor();
	return new AudioEffectProviderVST2;
}

static Gtk::Widget *create_vst2_editor(AudioEffect *p_vst, EffectEditor *p_editor) {
	if (p_vst->get_provider_id() != AudioEffectProviderVST2::singleton->get_id()) {
		return NULL;
	}
	return new EffectEditorVST2(static_cast<AudioEffectVST2 *>(p_vst), p_editor);
}

EffectEditorPluginFunc get_vst2_editor_function() {
	return &create_vst2_editor;
}