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

Wrapper for OS specific device information. More...

#include <Device.h>

Public Member Functions

 Device (DeviceID id, std::string name, DeviceType t)
 Constructs an instance of the Device object. More...
 
 ~Device ()
 Free any resources associated with the Device. More...
 
DeviceID getID ()
 Get the ID of a system audio device. More...
 
std::string getName ()
 Get the name of the system audio device. More...
 
DeviceType getType ()
 Get the type of system audio device. More...
 

Static Public Member Functions

static void deleteDevices (std::vector< Device *> devices)
 Delete all the device pointers inside the vector.
 

Detailed Description

Wrapper for OS specific device information.

Constructor & Destructor Documentation

◆ Device()

Device::Device ( DeviceID  id,
std::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

◆ getID()

DeviceID Device::getID ( )

Get the ID of a system audio device.

Returns
id Pointer to a integer

◆ getName()

std::string Device::getName ( )

Get the name of the system audio device.

Returns
name String representing the name of the device

◆ getType()

DeviceType Device::getType ( )

Get the type of system audio device.

Returns
type DeviceType enum value

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