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

Class for Recording audio and abstracting OS specific stuff. More...

#include <Record.h>

Public Member Functions

 Record (Controller *control)
 Construct a new Record to capture audio data and store in temp file. More...
 
 ~Record ()
 Delete instance of the ringbuffer used. More...
 
void recorder ()
 
std::vector< std::string > getExportPaths ()
 Get list of all files that contains captured audio in the current recording session. More...
 
void clearExportPaths ()
 Clear the vector to denote that the captured data has been discarded or exported to a new file. More...
 
void start ()
 Starts the capture of audio data by adding ringbuffer to Controller and reading from ringbuffer. More...
 
void stop ()
 Stops the capture of audio data by removing ringbuffer from Controller. More...
 

Detailed Description

Class for Recording audio and abstracting OS specific stuff.

Constructor & Destructor Documentation

Record::Record ( Controller control)

Construct a new Record to capture audio data and store in temp file.

Parameters
controlController instance that will be used to interact with the ringbuffer
Record::~Record ( )

Delete instance of the ringbuffer used.

Member Function Documentation

void Record::clearExportPaths ( )

Clear the vector to denote that the captured data has been discarded or exported to a new file.

std::vector< std::string > Record::getExportPaths ( )

Get list of all files that contains captured audio in the current recording session.

Returns
std::vector<std::string> Vector of strings that represents file path to captured audio
void Record::start ( )

Starts the capture of audio data by adding ringbuffer to Controller and reading from ringbuffer.

void Record::stop ( )

Stops the capture of audio data by removing ringbuffer from Controller.


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