1 #ifndef HL_CONTROLLER_H 2 #define HL_CONTROLLER_H 8 #include "HulaRingBuffer.h" 39 #endif // END HL_CONTROLLER_H Abstract class that defines the required components for OS specfic audio classes. ...
Definition: OSAudio.h:19
virtual ~Controller()
Deconstructs the current instance of the Controller class.
Definition: Controller.cpp:158
std::vector< Device * > getDevices(DeviceType type) const
Fetch a list of devices for the given DeviceType.
Definition: Controller.cpp:116
bool setActiveOutputDevice(Device *device) const
Set the device to which audio should be played back.
Definition: Controller.cpp:150
HulaLoop wrapper class for PortAudio ring buffer.
Definition: HulaRingBuffer.h:86
Wrapper for OS specific device information.
Definition: Device.h:55
Wrapper around translation functions for Qt.
Definition: Controller.h:10
HulaRingBuffer * createBuffer(float duration)
Allocate and initialize a HulaRingBuffer that can be added to the OSAudio ring buffer list via Contro...
Definition: Controller.cpp:65
Central component of the audio backend.
Definition: Controller.h:18
DeviceType
Denotes type of Device.
Definition: Device.h:18
void addBuffer(HulaRingBuffer *rb)
Add an initialized buffer to the list of buffers that receive audio data.
Definition: Controller.cpp:52
void removeBuffer(HulaRingBuffer *rb)
Remove a buffer from the list of buffers that receive audio data.
Definition: Controller.cpp:96
Controller()
Construct an instance of Controller class.
Definition: Controller.cpp:23
bool setActiveInputDevice(Device *device) const
Set the device from which audio should be captured.
Definition: Controller.cpp:133
HulaRingBuffer * createAndAddBuffer(float duration)
Allocate and initialize a HulaRingBuffer and automatically add it to the OSAudio ring buffer list...
Definition: Controller.cpp:76