Go to the documentation of this file.00001
00031 #ifndef ALSADAPTOR_ASCII_H
00032 #define ALSADAPTOR_ASCII_H
00033
00034 #include <QObject>
00035 #include <QString>
00036 #include "sysfsadaptor.h"
00037 #include "deviceadaptorringbuffer.h"
00038 #include "datatypes/timedunsigned.h"
00039
00040 class ALSAdaptorAscii : public SysfsAdaptor
00041 {
00042 Q_OBJECT;
00043 public:
00044 static DeviceAdaptor* factoryMethod(const QString& id)
00045 {
00046 return new ALSAdaptorAscii(id);
00047 }
00048
00049 protected:
00050 ALSAdaptorAscii(const QString& id);
00051 ~ALSAdaptorAscii();
00052
00053 virtual bool setStandbyOverride(const bool override) { Q_UNUSED(override); return false; }
00054 private:
00055
00056 void processSample(int pathId, int fd);
00057 char buf[16];
00058
00059 DeviceAdaptorRingBuffer<TimedUnsigned>* alsBuffer_;
00060 };
00061
00062 #endif