ovasCDriverGenericSawTooth.h 1.38 KB
Newer Older
1 2 3
#ifndef __OpenViBE_AcquisitionServer_CDriverGenericSawTooth_H__
#define __OpenViBE_AcquisitionServer_CDriverGenericSawTooth_H__

4
#include "ovasIDriver.h"
5 6 7 8
#include "../ovasCHeader.h"

namespace OpenViBEAcquisitionServer
{
9 10 11 12
	/**
	 * \class CDriverGenericSawTooth 
	 * \author Yann Renard (INRIA)
	 */
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
	class CDriverGenericSawTooth : public OpenViBEAcquisitionServer::IDriver
	{
	public:

		CDriverGenericSawTooth(OpenViBEAcquisitionServer::IDriverContext& rDriverContext);
		virtual void release(void);
		virtual const char* getName(void);

		virtual OpenViBE::boolean initialize(
			const OpenViBE::uint32 ui32SampleCountPerSentBlock,
			OpenViBEAcquisitionServer::IDriverCallback& rCallback);
		virtual OpenViBE::boolean uninitialize(void);

		virtual OpenViBE::boolean start(void);
		virtual OpenViBE::boolean stop(void);
		virtual OpenViBE::boolean loop(void);

		virtual OpenViBE::boolean isConfigurable(void);
		virtual OpenViBE::boolean configure(void);
		virtual const OpenViBEAcquisitionServer::IHeader* getHeader(void) { return &m_oHeader; }

	protected:

		OpenViBEAcquisitionServer::IDriverCallback* m_pCallback;
		OpenViBEAcquisitionServer::CHeader m_oHeader;

39 40 41 42
		OpenViBE::uint32 m_ui32ExternalBlockSize;
		std::vector<OpenViBE::float32> m_vSample;

		OpenViBE::uint64 m_ui64TotalSampleCount;
43

44
		OpenViBE::uint64 m_ui64StartTime;
45 46 47 48
	};
};

#endif // __OpenViBE_AcquisitionServer_CDriverGenericSawTooth_H__