1 #ifndef HL_CONTROLLER_H 2 #define HL_CONTROLLER_H 9 #include "HulaRingBuffer.h" 36 std::vector<Device *>
getDevices(DeviceType type)
const;
43 #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:169
std::vector< Device * > getDevices(DeviceType type) const
Fetch a list of devices for the given DeviceType.
Definition: Controller.cpp:129
void setActiveOutputDevice(Device *device) const
Set the device to which audio should be played back.
Definition: Controller.cpp:161
void setActiveInputDevice(Device *device) const
Set the device from which audio should be captured.
Definition: Controller.cpp:145
HulaLoop wrapper class for PortAudio ring buffer.
Definition: HulaRingBuffer.h:86
Wrapper for OS specific device information.
Definition: Device.h:34
Definition: Controller.h:11
HulaRingBuffer * createBuffer(float duration)
Allocate and initialize a HulaRingBuffer that can be added to the OSAudio ring buffer list via Contro...
Definition: Controller.cpp:78
Central component of the audio backend.
Definition: Controller.h:19
void addBuffer(HulaRingBuffer *rb)
Add an initialized buffer to the list of buffers that receive audio data.
Definition: Controller.cpp:65
void removeBuffer(HulaRingBuffer *rb)
Remove a buffer from the list of buffers that receive audio data.
Definition: Controller.cpp:109
Controller()
Construct an instance of Controller class.
Definition: Controller.cpp:21
HulaRingBuffer * createAndAddBuffer(float duration)
Allocate and initialize a HulaRingBuffer and automatically add it to the OSAudio ring buffer list...
Definition: Controller.cpp:89