audio-blockEngine/audio/blockEngine/base/GeneratorFile.hpp

29 lines
635 B
C++

/** @file
* @author Edouard DUPIN
* @copyright 2014, Edouard DUPIN, all right reserved
* @license APACHE v2.0 (see license file)
*/
#pragma once
#include <audio/blockEngine/core/BlockGenerator.hpp>
#include <etk/os/FSNode.hpp>
namespace audio {
namespace blockEngine {
class GeneratorFile : public audio::blockEngine::BlockGenerator {
public:
GeneratorFile();
virtual ~GeneratorFile() {};
protected:
etk::FSNode* m_file;
public: // herieted function :
virtual int32_t pull(double _currentTime, int32_t _request, float _timeout);
virtual int32_t init();
virtual int32_t unInit();
};
}
}