diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2008-05-06 09:15:45 +0000 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2008-05-06 09:15:45 +0000 |
commit | 8557d0c69f999bef86c241fab05584b99432df31 (patch) | |
tree | c539552b130bf16c9d3adf7ac38de56978a1886a /libs/ardour/ardour | |
parent | cb88f8cce97658ad3c990850104feca9fb0138ef (diff) |
* bugfix: SMFSource: track footer overwrote the last MIDI event
git-svn-id: svn://localhost/ardour2/branches/3.0@3319 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/smf_source.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libs/ardour/ardour/smf_source.h b/libs/ardour/ardour/smf_source.h index 9e215bf5a2..8d818e4c6b 100644 --- a/libs/ardour/ardour/smf_source.h +++ b/libs/ardour/ardour/smf_source.h @@ -111,7 +111,17 @@ class SMFSource : public MidiSource { int open(); void close(); - void seek_to_end(); + + /** + * This method is only used by flush_footer() to find the right seek position + * for the footer (at the end after recording or -4 offset ro SEEK_END + * if a footer is already present) + */ + void seek_to_footer_position(); + + /** + * write the track footer at the current seek position + */ void write_footer(); void write_chunk_header(const char id[4], uint32_t length); |