File: VideoAudioInput.h

package info (click to toggle)
camstream 0.27%2Bdfsg-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 12,320 kB
  • ctags: 5,393
  • sloc: cpp: 17,031; sh: 8,154; asm: 455; ansic: 440; makefile: 343
file content (50 lines) | stat: -rw-r--r-- 788 bytes parent folder | download | duplicates (2)
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
44
45
46
47
48
49
50
#ifndef VIDEOAUDIOINPUT_HPP
#define VIDEOAUDIOINPUT_HPP

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <qobject.h>
#include <qvector.h>

class CVideoDeviceLinux;

class CVideoAudioInput: public QObject
{
   Q_OBJECT
private:
   CVideoDeviceLinux *pVideo;
   int Channel;

   int Flags;
   QString Name;

public:
   enum {
     Mono,
     Stereo,
     Language1,
     Language2,   
   } Modes;

   CVideoAudioInput(CVideoDeviceLinux *video, int channel);

   int GetNumber() const;   
   QString GetName() const;

   bool IsMutable();
   bool IsMuted();
   int GetVolume() const;
   int GetBass() const;
   int GetTreble() const;
   
public slots:
   void Mute(bool mute_on);
   void SetVolume(int volume);
   void SetBass(int bass);
   void SetTreble(int treble);
};


#endif