diff options
Diffstat (limited to 'src/engine/SMFWriter.cpp')
-rw-r--r-- | src/engine/SMFWriter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/SMFWriter.cpp b/src/engine/SMFWriter.cpp index d3f79b6..25d25c9 100644 --- a/src/engine/SMFWriter.cpp +++ b/src/engine/SMFWriter.cpp @@ -65,7 +65,7 @@ SMFWriter::~SMFWriter() */ bool SMFWriter::start(const std::string& filename, - Raul::TimeStamp start_time) throw (std::logic_error) + Raul::TimeStamp start_time) { if (_fd) { throw std::logic_error( @@ -85,7 +85,7 @@ SMFWriter::start(const std::string& filename, write_header(); } - return (_fd == 0) ? -1 : 0; + return (_fd == 0) ? false : true; } /** Write an event at the end of the file. @@ -97,7 +97,7 @@ SMFWriter::start(const std::string& filename, void SMFWriter::write_event(Raul::TimeStamp time, size_t ev_size, - const unsigned char* ev) throw (std::logic_error) + const unsigned char* ev) { if (time < _start_time) { throw std::logic_error("Event time is before file start time"); @@ -145,7 +145,7 @@ SMFWriter::flush() } void -SMFWriter::finish() throw (std::logic_error) +SMFWriter::finish() { if (!_fd) { throw std::logic_error( |