blob: 194f8498a5fbc8513c3d9fb41b43abce2fdd21e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include "PreviewStartRecSubScript.h"
#include "PreviewReplaySubScript.h"
#include <crepe/api/AudioSource.h>
#include <crepe/types.h>
using namespace crepe;
using namespace std;
void PreviewStartRecSubScript::init() {
IButtonScript::init();
this->subscribe<ButtonPressEvent>([this](const ButtonPressEvent & e) {
return this->on_button_press(e);
});
}
bool PreviewStartRecSubScript::on_button_press(const ButtonPressEvent & e) {
this->trigger_event<StartPreviewRecording>();
return false;
}
|