diff options
Diffstat (limited to 'src/engine/SMFWriter.hpp')
-rw-r--r-- | src/engine/SMFWriter.hpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/engine/SMFWriter.hpp b/src/engine/SMFWriter.hpp index 4c52b12..3e47e9f 100644 --- a/src/engine/SMFWriter.hpp +++ b/src/engine/SMFWriter.hpp @@ -20,25 +20,26 @@ #include <stdexcept> #include <string> -#include "raul/MIDISink.hpp" #include "raul/TimeStamp.hpp" -namespace Raul { +#include "MIDISink.hpp" + +namespace Machina { /** Standard Midi File (Type 0) Writer * \ingroup raul */ -class SMFWriter : public Raul::MIDISink { +class SMFWriter : public MIDISink { public: - explicit SMFWriter(TimeUnit unit); + explicit SMFWriter(Raul::TimeUnit unit); ~SMFWriter(); bool start(const std::string& filename, - TimeStamp start_time) throw (std::logic_error); + Raul::TimeStamp start_time) throw (std::logic_error); - TimeUnit unit() const { return _unit; } + Raul::TimeUnit unit() const { return _unit; } - void write_event(TimeStamp time, + void write_event(Raul::TimeStamp time, size_t ev_size, const unsigned char* ev) throw (std::logic_error); @@ -58,14 +59,14 @@ protected: std::string _filename; FILE* _fd; - TimeUnit _unit; + Raul::TimeUnit _unit; Raul::TimeStamp _start_time; Raul::TimeStamp _last_ev_time; ///< Time last event was written relative to _start_time uint32_t _track_size; uint32_t _header_size; ///< size of SMF header, including MTrk chunk header }; -} // namespace Raul +} // namespace Machina #endif // RAUL_SMF_WRITER_HPP |