30class AudioRecorder final :
public UI {
33 bool opened()
override;
34 bool getGreyoutColsAndRows(uint32_t* cols, uint32_t* rows)
override;
36 ActionResult buttonAction(deluge::hid::Button b,
bool on,
bool inCardRoutine)
override;
37 bool beginOutputRecording(AudioRecordingFolder folder = AudioRecordingFolder::RESAMPLE,
38 AudioInputChannel channel = AudioInputChannel::OUTPUT,
bool writeLoopPoints =
false,
39 bool shouldNormalize =
true);
42 bool isCurrentlyResampling();
44 AudioInputChannel recordingSource;
48 void endRecordingSoon(int32_t buttonLatency = 0);
52 bool updatedRecordingStatus =
false;
55 UIType getUIType()
override {
return UIType::AUDIO_RECORDER; }
58 void finishRecording();
59 bool setupRecordingToFile(AudioInputChannel newMode, int32_t newNumChannels, AudioRecordingFolder folderID,
60 bool writeLoopPoints =
false,
bool shouldNormalize =
true);