~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to kmix/mixer_none.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *              KMix -- KDE's full featured mini mixer
 
3
 *
 
4
 *
 
5
 *              Copyright (C) 1996-2000 Christian Esken
 
6
 *                        esken@kde.org
 
7
 *
 
8
 * This program is free software; you can redistribute it and/or
 
9
 * modify it under the terms of the GNU Library General Public
 
10
 * License as published by the Free Software Foundation; either
 
11
 * version 2 of the License, or (at your option) any later version.
 
12
 *
 
13
 * This program is distributed in the hope that it will be useful,
 
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
16
 * Library General Public License for more details.
 
17
 *
 
18
 * You should have received a copy of the GNU Library General Public
 
19
 * License along with this program; if not, write to the Free
 
20
 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
21
 */
 
22
 
 
23
#include "mixer_none.h"
 
24
 
 
25
// This static method must be implemented (as fallback)
 
26
Mixer* Mixer::getMixer(int devnum, int SetNum)
 
27
{
 
28
  Mixer *l_mixer;
 
29
  l_mixer = new Mixer_None( devnum, SetNum);
 
30
  l_mixer->setupMixer();
 
31
  return l_mixer;
 
32
}
 
33
 
 
34
Mixer_None::Mixer_None()
 
35
{
 
36
}
 
37
 
 
38
Mixer_None::Mixer_None(int devnum, int SetNum)
 
39
{
 
40
}
 
41
 
 
42
Mixer_None::~Mixer_None()
 
43
{
 
44
}
 
45
 
 
46
int Mixer_None::openMixer()
 
47
{
 
48
   //i_s_mixer_name = "No mixer";
 
49
   return Mixer::ERR_NOTSUPP;
 
50
}
 
51
 
 
52
int Mixer_None::releaseMixer()
 
53
{
 
54
  return Mixer::ERR_NOTSUPP;
 
55
}
 
56
 
 
57
int Mixer_None::readVolumeFromHW( int , Volume &vol )
 
58
{
 
59
  return Mixer::ERR_NOTSUPP;
 
60
}
 
61
 
 
62
int Mixer_None::writeVolumeToHW( int , Volume vol )
 
63
{
 
64
  return Mixer::ERR_NOTSUPP;
 
65
}
 
66
 
 
67
bool Mixer_None::setRecsrcHW( int devnum, bool on)
 
68
{
 
69
    return false;
 
70
}
 
71
 
 
72
bool Mixer_None::isRecsrcHW( int devnum )
 
73
{
 
74
    return false;
 
75
}
 
76