summaryrefslogtreecommitdiff
path: root/libopie2/opiemm/osoundsystem.h
Unidiff
Diffstat (limited to 'libopie2/opiemm/osoundsystem.h') (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiemm/osoundsystem.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/libopie2/opiemm/osoundsystem.h b/libopie2/opiemm/osoundsystem.h
index ac7a5a7..cce90c0 100644
--- a/libopie2/opiemm/osoundsystem.h
+++ b/libopie2/opiemm/osoundsystem.h
@@ -1,16 +1,15 @@
1/* 1/*
2                 This file is part of the Opie Project 2                 This file is part of the Opie Project
3 3              (C) 2003-2005 Michael 'Mickey' Lauer <mickey@Vanille.de>
4              (C) 2003 Michael 'Mickey' Lauer <mickey@tm.informatik.uni-frankfurt.de>
5 =. 4 =.
6 .=l. 5 .=l.
7           .>+-= 6           .>+-=
8 _;:,     .>    :=|. This program is free software; you can 7 _;:,     .>    :=|. This program is free software; you can
9.> <`_,   >  .   <= redistribute it and/or modify it under 8.> <`_,   >  .   <= redistribute it and/or modify it under
10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public 9:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
11.="- .-=="i,     .._ License as published by the Free Software 10.="- .-=="i,     .._ License as published by the Free Software
12 - .   .-<_>     .<> Foundation; either version 2 of the License, 11 - .   .-<_>     .<> Foundation; either version 2 of the License,
13     ._= =}       : or (at your option) any later version. 12     ._= =}       : or (at your option) any later version.
14    .%`+i>       _;_. 13    .%`+i>       _;_.
15    .i_,=:_.      -<s. This program is distributed in the hope that 14    .i_,=:_.      -<s. This program is distributed in the hope that
16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 15     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
@@ -189,47 +188,57 @@ class OMixerInterface : public QObject
189 /** 188 /**
190 * @returns all available channels. 189 * @returns all available channels.
191 */ 190 */
192 QStringList allChannels() const; 191 QStringList allChannels() const;
193 /** 192 /**
194 * @returns recordable channels. 193 * @returns recordable channels.
195 */ 194 */
196 QStringList recChannels() const; 195 QStringList recChannels() const;
197 /** 196 /**
198 * @returns playable channels. 197 * @returns playable channels.
199 */ 198 */
200 QStringList playChannels() const; 199 QStringList playChannels() const;
201 200 /**
201 * @returns true, if the device features multiple recording sources.
202 */
203 bool hasMultipleRecording() const;
202 /** 204 /**
203 * @returns true, if @a channel exists. 205 * @returns true, if @a channel exists.
204 */ 206 */
205 bool hasChannel( const QString& channel ) const; 207 bool hasChannel( const QString& channel ) const;
206 /** 208 /**
207 * @returns true, if @a channel is stereo. 209 * @returns true, if @a channel is stereo.
208 */ 210 */
209 bool isStereo( const QString& channel ) const; 211 bool isStereo( const QString& channel ) const;
210 212 /**
213 * @returns tru, if @a channel is a possible recording source.
214 */
215 bool isRecordable( const QString& channel ) const;
211 /** 216 /**
212 * Set the @a left and @a right volumes for @a channel. 217 * Set the @a left and @a right volumes for @a channel.
213 * If no value for right is given, the value for left is taken for that. 218 * If no value for right is given, the value for left is taken for that.
214 */ 219 */
215 void setVolume( const QString& channel, int left, int right = -1 ); 220 void setVolume( const QString& channel, int left, int right = -1 );
216 /** 221 /**
217 * @returns the volume of @a channel or -1, if the channel doesn't exist. 222 * @returns the volume of @a channel or -1, if the channel doesn't exist.
218 * @note You might want to use @ref hasChannel() to check if a channel exists. 223 * @note You might want to use @ref hasChannel() to check if a channel exists.
219 */ 224 */
220 int volume( const QString& channel ) const; 225 int volume( const QString& channel ) const;
221 226
222 protected: 227 protected:
223 int _fd; 228 int _fd;
229 int _capmask;
230 int _devmask;
231 int _recmask;
232 int _stmask;
224 QMap<QString, int> _channels; 233 QMap<QString, int> _channels;
225 234
226 private: 235 private:
227 void init(); 236 void init();
228 private: 237 private:
229 class Private; 238 class Private;
230 Private *d; 239 Private *d;
231}; 240};
232 241
233} 242}
234} 243}
235 244