Diffstat (limited to 'noncore/multimedia/opierec/device.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opierec/device.h | 45 |
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 |