X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fmidi_playlist_source.cc;h=65c2794947dd5ae53da549bb0d79e15b57e4dd96;hb=cf52d6e4b40111eb04b244ec054055a4ec15dbe0;hp=957531f52007f5a1a78d0858c1cc48e406eb496b;hpb=4235e9a1a278d5a6c0403ea5cb5c7477e2a1b8ad;p=ardour.git diff --git a/libs/ardour/midi_playlist_source.cc b/libs/ardour/midi_playlist_source.cc index 957531f520..65c2794947 100644 --- a/libs/ardour/midi_playlist_source.cc +++ b/libs/ardour/midi_playlist_source.cc @@ -20,32 +20,28 @@ #include "libardour-config.h" #endif -#include -#include - -#include -#include - #include "pbd/error.h" -#include "pbd/convert.h" -#include "pbd/enumwriter.h" #include "ardour/midi_playlist.h" #include "ardour/midi_playlist_source.h" -#include "ardour/midi_region.h" -#include "ardour/debug.h" -#include "ardour/filename_extensions.h" -#include "ardour/session.h" -#include "ardour/session_directory.h" -#include "ardour/session_playlists.h" -#include "ardour/source_factory.h" -#include "i18n.h" +#include "pbd/i18n.h" using namespace std; using namespace ARDOUR; using namespace PBD; +namespace ARDOUR { +class MidiStateTracker; +class Session; +template class MidiRingBuffer; +} + +namespace Evoral { +template class EventSink; +template class Event; +} + /******************************************************************************* As of May 2011, it appears too complex to support compound regions for MIDI because of the need to be able to edit the data represented by the region. It @@ -98,7 +94,6 @@ MidiPlaylistSource::get_state () return node; } - int MidiPlaylistSource::set_state (const XMLNode& node, int version) { @@ -127,10 +122,12 @@ MidiPlaylistSource::length (framepos_t) const } framecnt_t -MidiPlaylistSource::read_unlocked (Evoral::EventSink& dst, +MidiPlaylistSource::read_unlocked (const Lock& lock, + Evoral::EventSink& dst, framepos_t /*position*/, framepos_t start, framecnt_t cnt, - MidiStateTracker*) const + MidiStateTracker*, + MidiChannelFilter*) const { boost::shared_ptr mp = boost::dynamic_pointer_cast (_playlist); @@ -142,43 +139,44 @@ MidiPlaylistSource::read_unlocked (Evoral::EventSink& dst, } framecnt_t -MidiPlaylistSource::write_unlocked (MidiRingBuffer&, - framepos_t, - framecnt_t) +MidiPlaylistSource::write_unlocked (const Lock&, + MidiRingBuffer&, + framepos_t, + framecnt_t) { fatal << string_compose (_("programming error: %1"), "MidiPlaylistSource::write_unlocked() called - should be impossible") << endmsg; - /*NOTREACHED*/ + abort(); /*NOTREACHED*/ return 0; } void -MidiPlaylistSource::append_event_unlocked_beats(const Evoral::Event& /*ev*/) +MidiPlaylistSource::append_event_beats(const Glib::Threads::Mutex::Lock& /*lock*/, const Evoral::Event& /*ev*/) { - fatal << string_compose (_("programming error: %1"), "MidiPlaylistSource::append_event_unlocked_beats() called - should be impossible") << endmsg; - /*NOTREACHED*/ + fatal << string_compose (_("programming error: %1"), "MidiPlaylistSource::append_event_beats() called - should be impossible") << endmsg; + abort(); /*NOTREACHED*/ } void -MidiPlaylistSource::append_event_unlocked_frames(const Evoral::Event& /* ev */, framepos_t /*source_start*/) +MidiPlaylistSource::append_event_frames(const Glib::Threads::Mutex::Lock& /*lock*/, const Evoral::Event& /* ev */, framepos_t /*source_start*/) { - fatal << string_compose (_("programming error: %1"), "MidiPlaylistSource::append_event_unlocked_frames() called - should be impossible") << endmsg; - /*NOTREACHED*/ + fatal << string_compose (_("programming error: %1"), "MidiPlaylistSource::append_event_frames() called - should be impossible") << endmsg; + abort(); /*NOTREACHED*/ } void -MidiPlaylistSource::load_model (bool, bool) +MidiPlaylistSource::load_model (const Glib::Threads::Mutex::Lock&, bool) { /* nothing to do */ } void -MidiPlaylistSource::destroy_model () +MidiPlaylistSource::destroy_model (const Glib::Threads::Mutex::Lock&) { /* nothing to do */ } void -MidiPlaylistSource::flush_midi () +MidiPlaylistSource::flush_midi (const Lock& lock) { }