9 #define HL_INFINITE_RECORD -1 32 bool recordState =
true;
33 bool playbackState =
false;
50 bool record(
double delay,
double duration);
58 void exportFile(std::string targetDirectory);
61 std::string
stateToStr(
const TransportState state)
const;
65 #endif // HL_TRANSPORT_H bool record()
Overload of record with no delay and infinite record time.
Definition: Transport.cpp:66
Extra class for managing the state of the application and all audio related processes.
Definition: Transport.h:29
bool pause()
Enter the paused state for playback or recording.
Definition: Transport.cpp:112
Controller * getController() const
Get the controller instance.
Definition: Transport.cpp:193
bool stop()
Enter the stopped state for playback or recording.
Definition: Transport.cpp:74
TransportState getState() const
Discard any recorded audio and reset the state.
Definition: Transport.cpp:157
virtual ~Transport()
Delete the controller we created.
Definition: Transport.cpp:208
Definition: Controller.h:11
Central component of the audio backend.
Definition: Controller.h:19
bool play()
Playback previously recorded audio.
Definition: Transport.cpp:94
Transport()
Construct a new instance of the Transport class.
Definition: Transport.cpp:12
std::string stateToStr(const TransportState state) const
Convert an enum of type TransportState to a presentable string.
Definition: Transport.cpp:167