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

A class that structures the receival of audio from the OS framework. More...

#include <Controller.h>

Inheritance diagram for Controller:
Inheritance graph
[legend]
Collaboration diagram for Controller:
Collaboration graph
[legend]

Public Member Functions

 Controller ()
 Construct an instance of Controller class. More...
 
 ~Controller ()
 Deconstructs the current instance of the Controller class.
 
void addBufferReadyCallback (ICallback *func)
 Add upper layer functions to the callback list. More...
 
void removeBufferReadyCallback (ICallback *func)
 Remove upper layer functions to the callback list. More...
 
void handleData (byte *data, uint32_t size)
 Callback function that is triggered when audio is captured by OSAudio. More...
 

Detailed Description

A class that structures the receival of audio from the OS framework.

Constructor & Destructor Documentation

Controller::Controller ( )

Construct an instance of Controller class.

Acts as a bridge between the higher levels and OS level functions

Member Function Documentation

void Controller::addBufferReadyCallback ( ICallback func)

Add upper layer functions to the callback list.

Parameters
funcDerived instance of iCallback class
void Controller::handleData ( byte *  data,
uint32_t  size 
)
virtual

Callback function that is triggered when audio is captured by OSAudio.

Parameters
sizeSize of returned audio data (frames)
dataAudio data in byte buffer

Implements ICallback.

void Controller::removeBufferReadyCallback ( ICallback func)

Remove upper layer functions to the callback list.

Parameters
funcDerived instance of iCallback class

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