HulaLoop
Simple cross-platform audio loopback and recording.
Main Page
Classes
Files
Course Documents
File List
src
audio
Device.h
1
#ifndef SYS_DEVICE
2
#define SYS_DEVICE
3
4
#include <cstdint>
5
#include <string>
6
7
using namespace
std
;
8
9
enum
DeviceType
10
{
11
RECORDING = 1,
12
PLAYBACK = 2,
13
LOOPBACK = 4
14
};
15
19
// TODO: Add better public description
20
class
Device
21
{
22
private
:
23
uint32_t* deviceID;
24
string
deviceName;
25
26
DeviceType type;
27
28
public
:
29
Device
(uint32_t*
id
,
string
name, DeviceType t);
30
~
Device
();
31
32
uint32_t* getID();
33
void
setID(uint32_t*
id
);
34
35
string
getName();
36
void
setName(
string
name);
37
38
DeviceType getType();
39
void
setType(DeviceType t);
40
};
41
42
#endif
std
Device
Defines a system audio device.
Definition:
Device.h:20
Generated by
1.8.11