File: VideoAudioInput.cpp

package info (click to toggle)
camstream 0.27%2Bdfsg-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 12,368 kB
  • ctags: 5,393
  • sloc: cpp: 17,031; sh: 8,154; asm: 455; ansic: 440; makefile: 343
file content (89 lines) | stat: -rw-r--r-- 1,293 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/**
  \brief Audio inputs of a video device
  
  This class describes an audio input on the card... Hopefully there are as 
  many audio input as video inputs (and listed in the same order, but well,
  you never know :))
  
*/

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

#include "VideoAudioInput.h"
#include "VideoDevice.h"

CVideoAudioInput::CVideoAudioInput(CVideoDevice *video, int channel)
{
   pVideo = video;
   Channel = channel;
   
   Flags = 0;
}

// public

int CVideoAudioInput::GetNumber() const
{
   return Channel;
}

QString CVideoAudioInput::GetName() const
{
   return Name;
}

/** Returns true if this audio input can be muted */
bool CVideoAudioInput::IsMutable()
{
   return false;
}

bool CVideoAudioInput::IsMuted()
{
   return false;
}

/** 
  \brief Return volume setting (if supported)
  \return An integer in the range 0..65535, or -1 if not supported or on error
*/  
int CVideoAudioInput::GetVolume() const
{
   return -1;
}

int CVideoAudioInput::GetBass() const
{
   return -1;
}

int CVideoAudioInput::GetTreble() const
{
   return -1;
}



// public slots

void CVideoAudioInput::Mute(bool mute_on)
{
}


void CVideoAudioInput::SetVolume(int volume)
{
}


void CVideoAudioInput::SetBass(int bass)
{
}


void CVideoAudioInput::SetTreble(int treble)
{
}