forked from digited/lesynth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathleSynth.h
45 lines (33 loc) · 1.37 KB
/
leSynth.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
40
41
42
43
44
45
#ifndef LESYNTH_H
#define LESYNTH_H
#include "PluginInterfaces.h"
#include "utauloid/oto.h"
#include "utauloid/ust.h"
class leSynth : public QObject, public ISynth
{
Q_OBJECT
Q_PLUGIN_METADATA(IID c_isynth_comname FILE "leSynth.json")
Q_INTERFACES(ISynth)
public:
QString name() override;
QString description() override;
QString version() override;
void setup(SSynthConfig &cfg) override;
bool setVoicebank(const QString &path) override;
bool setVocals(const ust &u) override;
bool setVocals(const QStringList &ust) override;
bool synthesize(qtauAudioSource &a) override;
bool synthesize(const QString &outFileName) override;
bool isVbReady() override;
bool isVocalsReady() override;
bool supportsStreaming() override;
protected:
vsLog* log;
QOtoMap vbCfg;
ust songCfg;
inline void sLog(const QString &msg) { log->addMessage(msg, ELog::success); }
inline void dLog(const QString &msg) { log->addMessage(msg, ELog::debug); }
inline void iLog(const QString &msg) { log->addMessage(msg, ELog::info); }
inline void eLog(const QString &msg) { log->addMessage(msg, ELog::error); }
};
#endif // LESYNTH_H