Raul::SMFWriter Class Reference

Standard Midi File (Type 0) Writer. More...

#include <SMFWriter.hpp>

Inherits Raul::MIDISink.

Collaboration diagram for Raul::SMFWriter:
Collaboration graph

List of all members.

Public Member Functions

 SMFWriter (TimeUnit unit)
bool start (const std::string &filename, TimeStamp start_time) throw (std::logic_error)
TimeUnit unit () const
void write_event (TimeStamp time, size_t ev_size, const unsigned char *ev) throw (std::logic_error)
void flush ()
void finish () throw (std::logic_error)

Protected Member Functions

void write_header ()
void write_footer ()
void write_chunk_header (const char id[4], uint32_t length)
void write_chunk (const char id[4], uint32_t length, void *data)
size_t write_var_len (uint32_t val)

Protected Attributes

std::string _filename
FILE * _fd
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

Static Protected Attributes

static const uint32_t VAR_LEN_MAX = 0x0FFFFFFF

Detailed Description

Standard Midi File (Type 0) Writer.


The documentation for this class was generated from the following file:

Generated on 1 Feb 2010 for RAUL by  doxygen 1.6.1