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

Defines a system audio device. More...

#include <Device.h>

Public Member Functions

 Device (uint32_t *id, string name, DeviceType t)
 Constructs an instance of the Device object. More...
 
 ~Device ()
 Deconstructs the device instance.
 
uint32_t * getID ()
 Get the ID of a system audio device. More...
 
void setID (uint32_t *id)
 Set the ID of a system audio device. More...
 
string getName ()
 Get the name of the system audio device. More...
 
void setName (string name)
 Set the name of the system audio device. More...
 
DeviceType getType ()
 Get the type of system audio device. More...
 
void setType (DeviceType t)
 Set the type of system audio device. More...
 

Detailed Description

Defines a system audio device.

Constructor & Destructor Documentation

Device::Device ( uint32_t *  id,
string  name,
DeviceType  t 
)

Constructs an instance of the Device object.

Parameters
idID of the audio device
nameName of the audio device
tDeviceType of the audio device

Member Function Documentation

uint32_t * Device::getID ( )

Get the ID of a system audio device.

Returns
id Pointer to a integer
string Device::getName ( )

Get the name of the system audio device.

Returns
name String representing the name of the device
DeviceType Device::getType ( )

Get the type of system audio device.

Returns
type DeviceType enum value
void Device::setID ( uint32_t *  id)

Set the ID of a system audio device.

Parameters
idPointer to ID value due to Windows return values
void Device::setName ( string  name)

Set the name of the system audio device.

Parameters
nameString representing the name of the device
void Device::setType ( DeviceType  t)

Set the type of system audio device.

Parameters
typeDeviceType enum value

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