Go to the documentation of this file.00001
00028 #ifndef ALSADAPTOR_SYSFS_H
00029 #define ALSADAPTOR_SYSFS_H
00030
00031 #include "sysfsadaptor.h"
00032 #include "deviceadaptorringbuffer.h"
00033 #include "datatypes/timedunsigned.h"
00034 #include <QTime>
00035
00045 class ALSAdaptorSysfs : public SysfsAdaptor
00046 {
00047 Q_OBJECT;
00048 public:
00053 static DeviceAdaptor* factoryMethod(const QString& id)
00054 {
00055 return new ALSAdaptorSysfs(id);
00056 }
00057
00058 protected:
00063 ALSAdaptorSysfs(const QString& id);
00064 ~ALSAdaptorSysfs();
00065
00075 virtual bool setStandbyOverride(const bool override) { Q_UNUSED(override); return false; }
00076 private:
00077
00085 void processSample(int pathId, int fd);
00086
00087 DeviceAdaptorRingBuffer<TimedUnsigned>* alsBuffer_;
00088 };
00089
00090 #endif
00091