Recording to SMF. Playback not quite working yet, just some buglets left to iron out.

git-svn-id: svn://localhost/ardour2/branches/midi@841 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2006-08-21 19:12:26 +00:00
parent 7250433f50
commit 48a4dc072c
13 changed files with 602 additions and 52 deletions

View file

@ -32,6 +32,7 @@
#include <pbd/pthread_utils.h>
#include <ardour/midi_source.h>
#include <ardour/midi_ring_buffer.h>
#include "i18n.h"
@ -90,14 +91,14 @@ MidiSource::set_state (const XMLNode& node)
}
jack_nframes_t
MidiSource::read (MidiBuffer& dst, jack_nframes_t start, jack_nframes_t cnt) const
MidiSource::read (MidiRingBuffer& dst, jack_nframes_t start, jack_nframes_t cnt) const
{
Glib::Mutex::Lock lm (_lock);
return read_unlocked (dst, start, cnt);
}
jack_nframes_t
MidiSource::write (MidiBuffer& dst, jack_nframes_t cnt)
MidiSource::write (MidiRingBuffer& dst, jack_nframes_t cnt)
{
Glib::Mutex::Lock lm (_lock);
return write_unlocked (dst, cnt);