HulaLoop
Simple cross-platform audio loopback and recording.
Public Member Functions | List of all members
Transport Class Reference

Utility class for managing state of application and all audio related processes. More...

#include <transport.h>

Public Member Functions

 Transport ()
 Construct a new instance of the Transport class.
 
bool record ()
 Start and handle the process of recording.
 
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.
 
TransportState getState () const
 Return the current state of the Transport object. More...
 
std::string stateToStr (const TransportState state) const
 Convert an enum of type TransportState to a presentable string. More...
 

Detailed Description

Utility class for managing state of application and all audio related processes.

Member Function Documentation

TransportState Transport::getState ( ) const

Return the current state of the Transport object.

Returns
state Current transport state.
std::string Transport::stateToStr ( const TransportState  state) const

Convert an enum of type TransportState to a presentable string.

Returns
stateString String containing appropriate state descriptor.

The documentation for this class was generated from the following files: