diff options
Diffstat (limited to 'src/engine/SMFWriter.cpp')
-rw-r--r-- | src/engine/SMFWriter.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/engine/SMFWriter.cpp b/src/engine/SMFWriter.cpp index f3a9043..ad993bc 100644 --- a/src/engine/SMFWriter.cpp +++ b/src/engine/SMFWriter.cpp @@ -24,12 +24,11 @@ #include <limits> #include <string> -#include "raul/log.hpp" -#include "raul/SMFWriter.hpp" +#include "SMFWriter.hpp" using std::endl; -namespace Raul { +namespace Machina { /** Create a new SMF writer. * @@ -38,7 +37,7 @@ namespace Raul { * * *** NOTE: Only beat time is implemented currently. */ -SMFWriter::SMFWriter(TimeUnit unit) +SMFWriter::SMFWriter(Raul::TimeUnit unit) : _fd(NULL) , _unit(unit) , _start_time(unit, 0, 0) @@ -46,7 +45,7 @@ SMFWriter::SMFWriter(TimeUnit unit) , _track_size(0) , _header_size(0) { - if (unit.type() == TimeUnit::BEATS) + if (unit.type() == Raul::TimeUnit::BEATS) assert(unit.ppt() < std::numeric_limits<uint16_t>::max()); } @@ -69,7 +68,7 @@ SMFWriter::start(const std::string& filename, if (_fd) throw std::logic_error("Attempt to start new write while write in progress."); - info << "Opening SMF file " << filename << " for writing." << endl; + std::cout << "Opening SMF file " << filename << " for writing." << endl; _fd = fopen(filename.c_str(), "w+"); @@ -152,7 +151,7 @@ SMFWriter::finish() throw (std::logic_error) void SMFWriter::write_header() { - info << "SMF Flushing header\n"; + std::cout << "SMF Flushing header\n"; assert(_fd); @@ -177,7 +176,7 @@ SMFWriter::write_header() void SMFWriter::write_footer() { - info << "Writing EOT\n"; + std::cout << "Writing EOT\n"; fseek(_fd, 0, SEEK_END); write_var_len(1); // whatever... @@ -231,5 +230,5 @@ SMFWriter::write_var_len(uint32_t value) return ret; } -} // namespace Raul +} // namespace Machina |