diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2009-02-02 08:50:36 +0000 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2009-02-02 08:50:36 +0000 |
commit | 858f0cb5abb7efe3be2940bc53a20ff000a11424 (patch) | |
tree | 351f1e77abcaacf7aac0780d7299dd4968a6c26b /libs/ardour/midi_ring_buffer.cc | |
parent | ae2e090e74b18b12423dab7c62d2645cbcc36459 (diff) |
* debugging output
* style guide
git-svn-id: svn://localhost/ardour2/branches/3.0@4476 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_ring_buffer.cc')
-rw-r--r-- | libs/ardour/midi_ring_buffer.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/libs/ardour/midi_ring_buffer.cc b/libs/ardour/midi_ring_buffer.cc index 6327ab45c2..e93ca51b25 100644 --- a/libs/ardour/midi_ring_buffer.cc +++ b/libs/ardour/midi_ring_buffer.cc @@ -98,13 +98,22 @@ MidiRingBuffer<T>::read(MidiBuffer& dst, nframes_t start, nframes_t end, nframes ev_time -= start; ev_time += offset; + // this writes the timestamp to write_loc[0] uint8_t* write_loc = dst.reserve(ev_time, ev_size); if (write_loc == NULL) { cerr << "MRB: Unable to reserve space in buffer, event skipped"; continue; } - + + // write MIDI buffer contents success = Evoral::EventRingBuffer<T>::full_read(ev_size, write_loc); + + cerr << "wrote MidiEvent to Buffer: "; + for (size_t i=0; i < ev_size; ++i) { + printf("%X ", write_loc[i]); + } + printf("\n"); + if (success) { if (is_channel_event(status) && get_channel_mode() == ForceChannel) { |