MCPcopy Create free account
hub / github.com/audacity/audacity / init

Method init

au4/src/record/internal/recordcontroller.cpp:19–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17static const ActionCode RECORD_LEVEL_CODE("record-level");
18
19void 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
34void RecordController::deinit()
35{

Callers

nothing calls this directly

Calls 3

isPlayingChangedMethod · 0.80
notifyMethod · 0.80
currentProjectChangedMethod · 0.80

Tested by

no test coverage detected