summaryrefslogtreecommitdiff
path: root/libs/ardour/midi_source.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/midi_source.cc')
-rw-r--r--libs/ardour/midi_source.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/midi_source.cc b/libs/ardour/midi_source.cc
index 09e574c2ed..59aeddf831 100644
--- a/libs/ardour/midi_source.cc
+++ b/libs/ardour/midi_source.cc
@@ -46,6 +46,7 @@ MidiSource::MidiSource (Session& s, string name)
: Source (s, name, DataType::MIDI)
, _model(new MidiModel(s))
, _model_loaded (false)
+ , _writing (false)
{
_read_data_count = 0;
_write_data_count = 0;
@@ -55,6 +56,7 @@ MidiSource::MidiSource (Session& s, const XMLNode& node)
: Source (s, node)
, _model(new MidiModel(s))
, _model_loaded (false)
+ , _writing (false)
{
_read_data_count = 0;
_write_data_count = 0;
@@ -131,6 +133,8 @@ MidiSource::mark_streaming_midi_write_started (NoteMode mode)
_model->set_note_mode(mode);
_model->start_write();
}
+
+ _writing = true;
}
void
@@ -138,6 +142,8 @@ MidiSource::mark_streaming_write_started ()
{
if (_model)
_model->start_write();
+
+ _writing = true;
}
void
@@ -145,5 +151,7 @@ MidiSource::mark_streaming_write_completed ()
{
if (_model)
_model->end_write(false); // FIXME: param?
+
+ _writing = false;
}