summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opierec/device.h
authorllornkcor <llornkcor>2003-04-04 03:03:38 (UTC)
committer llornkcor <llornkcor>2003-04-04 03:03:38 (UTC)
commitce6388c4f44e9e76342a338954fff598372e06f0 (patch) (unidiff)
tree895c202343fc394335e6effdb535ccb864a587d3 /noncore/multimedia/opierec/device.h
parent487971af0c1b70babcc39fd549dc0d8142cd4865 (diff)
downloadopie-ce6388c4f44e9e76342a338954fff598372e06f0.zip
opie-ce6388c4f44e9e76342a338954fff598372e06f0.tar.gz
opie-ce6388c4f44e9e76342a338954fff598372e06f0.tar.bz2
bitches owe me money. initial commit. zaurus/vercel has sound drivers that doesnt actually change samplerates, so this kinda has problems, currently
Diffstat (limited to 'noncore/multimedia/opierec/device.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opierec/device.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/noncore/multimedia/opierec/device.h b/noncore/multimedia/opierec/device.h
new file mode 100644
index 0000000..c9a7491
--- a/dev/null
+++ b/noncore/multimedia/opierec/device.h
@@ -0,0 +1,45 @@
1
2#ifndef DEVICE_H
3#define DEVICE_H
4#include <qobject.h>
5#include <sys/soundcard.h>
6
7class Device : public QObject {
8 Q_OBJECT
9public:
10 Device( QObject * parent=0, const char * dspStr=0, const char * mixerStr=0, bool record=false );
11 ~Device() {};
12 bool closeDevice( bool);
13 int getChannels();
14 int getFormat();
15 int getInVolume();
16 int getOutVolume();
17 int getRate();
18 int getRes();
19 int sd; //sound descriptor
20 void changedInVolume(int);
21 void changedOutVolume(int);
22 bool openDsp();
23 int getDeviceFormat();
24 int getDeviceRate();
25 int getDeviceBits();
26 int getDeviceChannels();
27 int getDeviceFragSize();
28 bool setFragSize(int);
29 bool setDeviceChannels(int);
30 bool setDeviceRate(int);
31 bool setDeviceFormat(int);
32bool reset();
33
34private:
35 int devRes, devCh, devRate, devForm, flags;
36 char *dspstr, *mixstr;
37 bool selectMicInput();
38 int openDevice( int );
39private slots:
40
41protected:
42
43};
44
45#endif