summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opierec/device.h
authorllornkcor <llornkcor>2003-12-25 21:52:44 (UTC)
committer llornkcor <llornkcor>2003-12-25 21:52:44 (UTC)
commitf2805565b0d7edd2e72445f6d56e43eadcdac72d (patch) (side-by-side diff)
treeb9a74aec0c5616ae1976198c1f83945b697ed3d2 /noncore/multimedia/opierec/device.h
parent34a7e0451c95e8a19735610553dba064b68823d9 (diff)
downloadopie-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.h59
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
@@ -5,37 +5,40 @@
#include <sys/soundcard.h>
class Device : public QObject {
- Q_OBJECT
+ Q_OBJECT
public:
- Device( QObject * parent=0, const char * dspStr=0, const char * mixerStr=0, bool record=0 );
- ~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();
+ Device( QObject * parent=0, const char * dspStr=0, const char * mixerStr=0, bool record=0 );
+ ~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();
+
+ int devRead(int, short *, int);
+ int devWrite(int, short *, int);
private:
- int devRes, devCh, devRate, devForm, flags;
- char *dspstr, *mixstr;
- bool selectMicInput();
- int openDevice( int );
+ int devRes, devCh, devRate, devForm, flags;
+ char *dspstr, *mixstr;
+ bool selectMicInput();
+ int openDevice( int );
private slots:
protected: