19 #ifndef EVORAL_SMF_READER_HPP
20 #define EVORAL_SMF_READER_HPP
39 const char*
what()
const throw() {
return "Unexpected end of file"; }
42 const char*
what()
const throw() {
return "Corrupted file"; }
45 const char*
what()
const throw() {
return "Unsupported time stamp type (SMPTE)"; }
55 const std::string&
filename()
const {
return _filename; };
57 uint16_t
type()
const {
return _type; }
58 uint16_t
ppqn()
const {
return _ppqn; }
64 uint32_t* ev_delta_time)
73 static const uint32_t HEADER_SIZE = 22;
const char * what() const
const char * what() const
const char * what() const
const std::string & filename() const
bool open(const std::string &filename)
SMFReader(const std::string &filename="")
int read_event(size_t buf_len, uint8_t *buf, uint32_t *ev_size, uint32_t *ev_delta_time)
bool seek_to_track(unsigned track)
uint16_t num_tracks() const
static uint32_t read_var_len(FILE *fd)
GTKMM_API const Gtk::BuiltinStockID FILE