From 7bd4febfdb799cd359a380d23640654f476dadae Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 18 May 2011 15:52:39 +0000 Subject: Strip double blank lines. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@3279 a436a847-0d15-0410-975c-d299462d15a1 --- src/SMFWriter.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/SMFWriter.cpp') diff --git a/src/SMFWriter.cpp b/src/SMFWriter.cpp index 221c976..518658d 100644 --- a/src/SMFWriter.cpp +++ b/src/SMFWriter.cpp @@ -32,7 +32,6 @@ using std::endl; namespace Raul { - /** Create a new SMF writer. * * @a unit must match the time stamp of ALL events passed to write, or @@ -52,14 +51,12 @@ SMFWriter::SMFWriter(TimeUnit unit) assert(unit.ppt() < std::numeric_limits::max()); } - SMFWriter::~SMFWriter() { if (_fd) finish(); } - /** Start a write to an SMF file. * * @a filename Filename to write to. @@ -89,7 +86,6 @@ SMFWriter::start(const std::string& filename, return (_fd == 0) ? -1 : 0; } - /** Write an event at the end of the file. * * @a time is the absolute time of the event, relative to the start of the file @@ -136,7 +132,6 @@ SMFWriter::write_event(Raul::TimeStamp time, _track_size += stamp_size + ev_size; } - void SMFWriter::flush() { @@ -144,7 +139,6 @@ SMFWriter::flush() fflush(_fd); } - void SMFWriter::finish() throw (std::logic_error) { @@ -156,7 +150,6 @@ SMFWriter::finish() throw (std::logic_error) _fd = NULL; } - void SMFWriter::write_header() { @@ -182,7 +175,6 @@ SMFWriter::write_header() write_chunk_header("MTrk", _track_size); } - void SMFWriter::write_footer() { @@ -194,7 +186,6 @@ SMFWriter::write_footer() fwrite(eot, 1, 4, _fd); } - void SMFWriter::write_chunk_header(const char id[4], uint32_t length) { @@ -204,7 +195,6 @@ SMFWriter::write_chunk_header(const char id[4], uint32_t length) fwrite(&length_be, 4, 1, _fd); } - void SMFWriter::write_chunk(const char id[4], uint32_t length, void* data) { @@ -213,7 +203,6 @@ SMFWriter::write_chunk(const char id[4], uint32_t length, void* data) fwrite(data, 1, length, _fd); } - /** Write an SMF variable length value. * * @return size (in bytes) of the value written. @@ -243,6 +232,5 @@ SMFWriter::write_var_len(uint32_t value) return ret; } - } // namespace Raul -- cgit v1.2.1