summaryrefslogtreecommitdiffstats
path: root/src/SMFWriter.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-18 15:52:39 +0000
committerDavid Robillard <d@drobilla.net>2011-05-18 15:52:39 +0000
commit7bd4febfdb799cd359a380d23640654f476dadae (patch)
tree7acf0526548382e3768b45628a47f094120b7724 /src/SMFWriter.cpp
parent3a1a098d7d41468a74862777d3085f537fb6b894 (diff)
downloadraul-7bd4febfdb799cd359a380d23640654f476dadae.tar.gz
raul-7bd4febfdb799cd359a380d23640654f476dadae.tar.bz2
raul-7bd4febfdb799cd359a380d23640654f476dadae.zip
Strip double blank lines.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@3279 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/SMFWriter.cpp')
-rw-r--r--src/SMFWriter.cpp12
1 files changed, 0 insertions, 12 deletions
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<uint16_t>::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