blob: 5cb46cb9eb10a7a8d998add97b11d5a696c0c1ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
/*
* sndctl - a plugin for the Video Disk Recorder
* file: alsa.h
* description: header file for alsa.c
*
* author: Thomas Hildebrandt <toxym@web.de>
*
* inspired by and reengineered from 'avolctl'
* thanks to Martin Prochnow <nordlichtl@martins-kabuff.de>
*/
#ifndef SNDCTL_ALSA_H
#define SNDCTL_ALSA_H
#include <alsa/asoundlib.h>
#include "mixer.h"
/*
* cAlsa
* class for handling the Alsa API
*/
class cAlsa : public cMixer {
private:
struct alsacontrol : public control {
string hwName;
string mixername;
};
snd_mixer_t *handle;
vector<snd_mixer_t *> handles;
void init();
protected:
virtual void Volumes( void );
public:
cAlsa();
virtual ~cAlsa();
virtual bool IsMixer( string );
};
#endif //SNDCTL_ALSA_H
|