~ubuntu-branches/ubuntu/natty/kdemultimedia/natty-proposed

« back to all changes in this revision

Viewing changes to kmix/mixer_sun.h

  • Committer: Bazaar Package Importer
  • Author(s): Debian Qt/KDE Maintainers
  • Date: 2011-05-26 02:41:36 UTC
  • mfrom: (0.2.3 upstream)
  • mto: This revision was merged to the branch mainline in revision 108.
  • Revision ID: james.westby@ubuntu.com-20110526024136-jjwsigfy402jhupm
Tags: upstream-4.6.3
ImportĀ upstreamĀ versionĀ 4.6.3

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 <esken@kde.org>
6
 
 *                            2000 Brian Hanson <bhanson@hotmail.com>
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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21
 
 */
22
 
 
23
 
#ifndef MIXER_SUN_H
24
 
#define MIXER_SUN_H
25
 
 
26
 
#include <QString>
27
 
 
28
 
#include "mixer_backend.h"
29
 
 
30
 
class Mixer_SUN : public Mixer_Backend
31
 
{
32
 
public:
33
 
  Mixer_SUN(Mixer *mixer, int devnum);
34
 
  virtual ~Mixer_SUN();
35
 
 
36
 
  virtual QString errorText(int mixer_error);
37
 
  virtual int readVolumeFromHW( const QString& id, MixDevice *md  );
38
 
  virtual int writeVolumeToHW ( const QString& id, MixDevice *md  );
39
 
  void setRecsrcHW              ( const QString& id, bool on );
40
 
  bool isRecsrcHW               ( const QString& id );
41
 
 
42
 
  virtual QString getDriverName();
43
 
 
44
 
protected:
45
 
  virtual int open();
46
 
  virtual int close();
47
 
 
48
 
  void VolumeToGainBalance( Volume& volume, uint_t& gain, uchar_t& balance );
49
 
  void GainBalanceToVolume( uint_t& gain, uchar_t& balance, Volume& volume );
50
 
 
51
 
  int fd;
52
 
};
53
 
 
54
 
#endif