author | mickeyl <mickeyl> | 2005-01-30 19:00:38 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-01-30 19:00:38 (UTC) |
commit | c3b5d1ebb51848a679f96ac3bb1c8acb1b06138e (patch) (unidiff) | |
tree | 9ac1d1281b3bdd92d1975bdc7756e89ebe730f34 /libopie2/opiemm/osoundsystem.h | |
parent | 271dd6ba75ddfba5ac4345e9d74db4dbb2b7c971 (diff) | |
download | opie-c3b5d1ebb51848a679f96ac3bb1c8acb1b06138e.zip opie-c3b5d1ebb51848a679f96ac3bb1c8acb1b06138e.tar.gz opie-c3b5d1ebb51848a679f96ac3bb1c8acb1b06138e.tar.bz2 |
improve mixer code
Diffstat (limited to 'libopie2/opiemm/osoundsystem.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiemm/osoundsystem.h | 19 |
1 files changed, 14 insertions, 5 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,7 +1,6 @@ | |||
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 | .>+-= |
@@ -198,7 +197,10 @@ class OMixerInterface : public QObject | |||
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 | */ |
@@ -207,7 +209,10 @@ class OMixerInterface : public QObject | |||
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. |
@@ -221,7 +226,11 @@ class OMixerInterface : public QObject | |||
221 | 226 | ||
222 | protected: | 227 | protected: |
223 | int _fd; | 228 | int _fd; |
224 | QMap<QString, int> _channels; | 229 | int _capmask; |
230 | int _devmask; | ||
231 | int _recmask; | ||
232 | int _stmask; | ||
233 | QMap<QString,int> _channels; | ||
225 | 234 | ||
226 | private: | 235 | private: |
227 | void init(); | 236 | void init(); |