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

A audio class that captures system wide audio on Windows. More...

#include <WindowsAudio.h>

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

Public Member Functions

 ~WindowsAudio ()
 Clear all global pointers.
 
vector< Device * > getInputDevices ()
 Receive the list of available input audio devices connected to the OS and return them as Device instances. More...
 
vector< Device * > getOutputDevices ()
 Receive the list of available output audio devices connected to the OS and return them as Device instances. More...
 
void capture ()
 Execution loop for loopback capture.
 
void setActiveOutputDevice (Device *device)
 Set the selected output device and restart capture threads with new device. More...
 
- Public Member Functions inherited from OSAudio
virtual ~OSAudio ()=0
 Virtual implementation of Destructor.
 
void setBufferSize (uint32_t size)
 Set the desired capture buffer size. More...
 
void addBufferReadyCallback (ICallback *c)
 Add upper layer functions to the callback list. More...
 
void removeBufferReadyCallback (ICallback *func)
 Remove upper layer functions to the callback list. More...
 
void setActiveRecordDevice (Device *device)
 Set the selected input device and restart capture threads with new device. More...
 

Static Public Member Functions

static void test_capture (WindowsAudio *param)
 Static function in the current instance of the class to allow thread execution. More...
 

Additional Inherited Members

- Protected Attributes inherited from OSAudio
DeviceactiveInputDevice
 The selected input device.
 
DeviceactiveOutputDevice
 The selected output device.
 
vector< ICallback * > callbackList
 List of all added callback function.
 
vector< thread > execThreads
 List of all running threads.
 
uint32_t captureBufferSize
 

Detailed Description

A audio class that captures system wide audio on Windows.

Member Function Documentation

vector< Device * > WindowsAudio::getInputDevices ( )
virtual

Receive the list of available input audio devices connected to the OS and return them as Device instances.

Returns
vector of Device instances

Implements OSAudio.

vector< Device * > WindowsAudio::getOutputDevices ( )
virtual

Receive the list of available output audio devices connected to the OS and return them as Device instances.

Returns
vector of Device instances

Implements OSAudio.

void WindowsAudio::setActiveOutputDevice ( Device device)
virtual

Set the selected output device and restart capture threads with new device.

Parameters
deviceInstance of Device that corresponds to the desired system device

Implements OSAudio.

void WindowsAudio::test_capture ( WindowsAudio _this)
static

Static function in the current instance of the class to allow thread execution.

Parameters
_thisInstance of the current object

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