![]() |
HulaLoop
Simple cross-platform audio loopback and recording.
|
Extra class for managing the state of the application and all audio related processes. More...
#include <Transport.h>

Public Member Functions | |
| Transport () | |
| Construct a new instance of the Transport class. | |
| virtual | ~Transport () |
| Delete the controller we created. | |
| bool | record (double delay, double duration) |
| Start and handle the process of recording. More... | |
| bool | record () |
| Overload of record with no delay and infinite record time. More... | |
| bool | stop () |
| Enter the stopped state for playback or recording. | |
| bool | play () |
| Playback previously recorded audio. | |
| bool | pause () |
| Enter the paused state for playback or recording. | |
| Controller * | getController () const |
| Get the controller instance. More... | |
| void | exportFile (std::string targetDirectory) |
| TransportState | getState () const |
| Discard any recorded audio and reset the state. More... | |
| std::string | stateToStr (const TransportState state) const |
| Convert an enum of type TransportState to a presentable string. More... | |
Public Attributes | |
| Controller * | controller |
Protected Attributes | |
| Record * | recorder |
Extra class for managing the state of the application and all audio related processes.
| Controller * Transport::getController | ( | ) | const |
Get the controller instance.
| TransportState Transport::getState | ( | ) | const |
Discard any recorded audio and reset the state.
| bool Transport::record | ( | double | delay, |
| double | duration | ||
| ) |
Start and handle the process of recording.
| delay | Time, in seconds, to wait before starting record |
| duration | Time, in seconds, to record for. |
| bool Transport::record | ( | ) |
Overload of record with no delay and infinite record time.
| std::string Transport::stateToStr | ( | const TransportState | state | ) | const |
Convert an enum of type TransportState to a presentable string.
1.8.11