7 #include <QCoreApplication> 11 #define HL_INFINITE_RECORD -1 12 #define HL_TRANSPORT_LOCKOUT_MS 200 41 bool initRecordClicked;
53 bool record(
double delay,
double duration);
62 void exportFile(std::string targetDirectory);
71 #endif // HL_TRANSPORT_H bool record()
Overload of record with no delay and infinite record time.
Definition: Transport.cpp:87
Extra class for managing the state of the application and all audio related processes.
Definition: Transport.h:33
bool pause()
Enter the paused state for playback or recording.
Definition: Transport.cpp:146
bool hasExportPaths()
Checks if there are files in the export paths which means recording has happened and there are no fil...
Definition: Transport.cpp:256
bool stop()
Enter the stopped state for playback or recording.
Definition: Transport.cpp:95
TransportState getState() const
Return the current state of the Transport object.
Definition: Transport.cpp:187
virtual ~Transport()
Delete the controller we created.
Definition: Transport.cpp:274
Controller * getController() const
Get the controller instance.
Definition: Transport.cpp:221
Class for Recording audio and abstracting OS specific stuff.
Definition: Record.h:13
Wrapper around translation functions for Qt.
Definition: Controller.h:10
Central component of the audio backend.
Definition: Controller.h:18
std::string stateToStr(const TransportState state) const
Convert an enum of type TransportState to a presentable string.
Definition: Transport.cpp:197
bool play()
Playback previously recorded audio.
Definition: Transport.cpp:124
void discard()
Reset transport states and delete captured audio files from system temp folder.
Definition: Transport.cpp:237
Transport()
Construct a new instance of the Transport class.
Definition: Transport.cpp:13
TransportState
Available states for the recording/playback logic of the application.
Definition: Transport.h:19