author | llornkcor <llornkcor> | 2003-12-25 21:52:44 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-12-25 21:52:44 (UTC) |
commit | f2805565b0d7edd2e72445f6d56e43eadcdac72d (patch) (unidiff) | |
tree | b9a74aec0c5616ae1976198c1f83945b697ed3d2 /noncore/multimedia/opierec/device.h | |
parent | 34a7e0451c95e8a19735610553dba064b68823d9 (diff) | |
download | opie-f2805565b0d7edd2e72445f6d56e43eadcdac72d.zip opie-f2805565b0d7edd2e72445f6d56e43eadcdac72d.tar.gz opie-f2805565b0d7edd2e72445f6d56e43eadcdac72d.tar.bz2 |
uhhh.. helps to commit to correct branch
Diffstat (limited to 'noncore/multimedia/opierec/device.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opierec/device.h | 59 |
1 files changed, 31 insertions, 28 deletions
diff --git a/noncore/multimedia/opierec/device.h b/noncore/multimedia/opierec/device.h index f92be98..8152e85 100644 --- a/noncore/multimedia/opierec/device.h +++ b/noncore/multimedia/opierec/device.h | |||
@@ -7,33 +7,36 @@ | |||
7 | class Device : public QObject { | 7 | class Device : public QObject { |
8 | Q_OBJECT | 8 | Q_OBJECT |
9 | public: | 9 | public: |
10 | Device( QObject * parent=0, const char * dspStr=0, const char * mixerStr=0, bool record=0 ); | 10 | Device( QObject * parent=0, const char * dspStr=0, const char * mixerStr=0, bool record=0 ); |
11 | ~Device() {}; | 11 | ~Device() {}; |
12 | bool closeDevice( bool); | 12 | bool closeDevice( bool); |
13 | int getChannels(); | 13 | int getChannels(); |
14 | int getFormat(); | 14 | int getFormat(); |
15 | int getInVolume(); | 15 | int getInVolume(); |
16 | int getOutVolume(); | 16 | int getOutVolume(); |
17 | int getRate(); | 17 | int getRate(); |
18 | int getRes(); | 18 | int getRes(); |
19 | int sd; //sound descriptor | 19 | int sd; //sound descriptor |
20 | void changedInVolume(int); | 20 | void changedInVolume(int); |
21 | void changedOutVolume(int); | 21 | void changedOutVolume(int); |
22 | bool openDsp(); | 22 | bool openDsp(); |
23 | int getDeviceFormat(); | 23 | int getDeviceFormat(); |
24 | int getDeviceRate(); | 24 | int getDeviceRate(); |
25 | int getDeviceBits(); | 25 | int getDeviceBits(); |
26 | int getDeviceChannels(); | 26 | int getDeviceChannels(); |
27 | int getDeviceFragSize(); | 27 | int getDeviceFragSize(); |
28 | bool setFragSize(int); | 28 | bool setFragSize(int); |
29 | bool setDeviceChannels(int); | 29 | bool setDeviceChannels(int); |
30 | bool setDeviceRate(int); | 30 | bool setDeviceRate(int); |
31 | bool setDeviceFormat(int); | 31 | bool setDeviceFormat(int); |
32 | bool reset(); | 32 | bool reset(); |
33 | |||
34 | int devRead(int, short *, int); | ||
35 | int devWrite(int, short *, int); | ||
33 | 36 | ||
34 | private: | 37 | private: |
35 | int devRes, devCh, devRate, devForm, flags; | 38 | int devRes, devCh, devRate, devForm, flags; |
36 | char *dspstr, *mixstr; | 39 | char *dspstr, *mixstr; |
37 | bool selectMicInput(); | 40 | bool selectMicInput(); |
38 | int openDevice( int ); | 41 | int openDevice( int ); |
39 | private slots: | 42 | private slots: |