summaryrefslogtreecommitdiffstats
path: root/raul/SMFReader.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-02-09 18:23:57 +0000
committerDavid Robillard <d@drobilla.net>2008-02-09 18:23:57 +0000
commit81f335330c209359ef1d2b3bdedc5c19790d2eba (patch)
tree2262742e60b1360ecd66bf1f5be57e4df2b53de3 /raul/SMFReader.hpp
parent43dd122ffcdb6a0b40a56777245a870e411d439c (diff)
downloadraul-81f335330c209359ef1d2b3bdedc5c19790d2eba.tar.gz
raul-81f335330c209359ef1d2b3bdedc5c19790d2eba.tar.bz2
raul-81f335330c209359ef1d2b3bdedc5c19790d2eba.zip
Use Raul::TimeStamp (LV2 compatible typed 32:32 fixed timestamp) everywhere.
Fix initial size of Patchage messages window. Machina disabled for now (transitioning to generic timestamps). git-svn-id: http://svn.drobilla.net/lad/raul@1133 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul/SMFReader.hpp')
-rw-r--r--raul/SMFReader.hpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/raul/SMFReader.hpp b/raul/SMFReader.hpp
index 51ebdc7..7ce6f5b 100644
--- a/raul/SMFReader.hpp
+++ b/raul/SMFReader.hpp
@@ -21,6 +21,7 @@
#include <stdexcept>
#include <string>
#include <inttypes.h>
+#include <raul/TimeStamp.hpp>
namespace Raul {
@@ -38,14 +39,15 @@ public:
bool seek_to_track(unsigned track) throw (std::logic_error);
+ TimeUnit unit() const { return _unit; }
uint16_t type() const { return _type; }
uint16_t ppqn() const { return _ppqn; }
size_t num_tracks() { return _num_tracks; }
- int read_event(size_t buf_len,
- uint8_t* buf,
- uint32_t* ev_size,
- uint32_t* ev_delta_time) throw (std::logic_error);
+ int read_event(size_t buf_len,
+ uint8_t* buf,
+ uint32_t* ev_size,
+ TimeStamp* ev_delta_time) throw (std::logic_error);
void close();
@@ -57,6 +59,7 @@ protected:
std::string _filename;
FILE* _fd;
+ TimeUnit _unit;
uint16_t _type;
uint16_t _ppqn;
uint16_t _num_tracks;