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) (side-by-side diff)
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) (ignore 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 @@
+
+#ifndef DEVICE_H
+#define DEVICE_H
+#include <qobject.h>
+#include <sys/soundcard.h>
+
+class Device : public QObject {
+ Q_OBJECT
+public:
+ Device( QObject * parent=0, const char * dspStr=0, const char * mixerStr=0, bool record=false );
+ ~Device() {};
+ bool closeDevice( bool);
+ int getChannels();
+ int getFormat();
+ int getInVolume();
+ int getOutVolume();
+ int getRate();
+ int getRes();
+ int sd; //sound descriptor
+ void changedInVolume(int);
+ void changedOutVolume(int);
+ bool openDsp();
+ int getDeviceFormat();
+ int getDeviceRate();
+ int getDeviceBits();
+ int getDeviceChannels();
+ int getDeviceFragSize();
+ bool setFragSize(int);
+ bool setDeviceChannels(int);
+ bool setDeviceRate(int);
+ bool setDeviceFormat(int);
+bool reset();
+
+private:
+ int devRes, devCh, devRate, devForm, flags;
+ char *dspstr, *mixstr;
+ bool selectMicInput();
+ int openDevice( int );
+private slots:
+
+protected:
+
+};
+
+#endif