| 17 | static const ActionCode RECORD_LEVEL_CODE("record-level"); |
| 18 | |
| 19 | void RecordController::init() |
| 20 | { |
| 21 | dispatcher()->reg(this, RECORD_CODE, this, &RecordController::toggleRecord); |
| 22 | dispatcher()->reg(this, PAUSE_CODE, this, &RecordController::pause); |
| 23 | dispatcher()->reg(this, STOP_CODE, this, &RecordController::stop); |
| 24 | |
| 25 | playbackController()->isPlayingChanged().onNotify(this, [this]() { |
| 26 | m_isRecordAllowedChanged.notify(); |
| 27 | }); |
| 28 | |
| 29 | globalContext()->currentProjectChanged().onNotify(this, [this]() { |
| 30 | onProjectChanged(); |
| 31 | }); |
| 32 | } |
| 33 | |
| 34 | void RecordController::deinit() |
| 35 | { |
nothing calls this directly
no test coverage detected