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