-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathShoutVST.h
39 lines (35 loc) · 1.19 KB
/
ShoutVST.h
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
30
31
32
33
34
35
36
37
38
39
#pragma once
#include <audioeffectx.h>
#include "LibShoutWrapper.h"
#include "ShoutVSTEditor.h"
#include "ShoutVSTEncoderMP3.h"
#include "ShoutVSTEncoderOGG.h"
#include <atomic>
#include <memory>
#include <mutex>
using std::recursive_mutex;
class ShoutVST : public AudioEffectX {
public:
explicit ShoutVST(audioMasterCallback audioMaster);
virtual ~ShoutVST();
virtual void processReplacing(float** inputs, float** outputs,
VstInt32 sampleFrames) override;
void connect();
void disconnect();
virtual bool getEffectName(char* name) override;
virtual bool getVendorString(char* text) override;
virtual bool getProductString(char* text) override;
virtual VstPlugCategory getPlugCategory() override;
virtual VstInt32 getVendorVersion() override;
bool IsConnected();
int GetBitrate();
int GetTargetSampleRate();
void UpdateMetadata(const string& metadata);
private:
typedef std::lock_guard<std::recursive_mutex> guard;
recursive_mutex mtx_;
std::shared_ptr<ShoutVSTEncoder> encTmp;
std::shared_ptr<ShoutVSTEncoder> encSelected;
std::shared_ptr<ShoutVSTEditor> pEditor;
LibShoutWrapper libShoutWrapper;
};