projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Automation of LV2 plugin properties.
[ardour.git]
/
libs
/
ardour
/
midi_playlist_source.cc
diff --git
a/libs/ardour/midi_playlist_source.cc
b/libs/ardour/midi_playlist_source.cc
index 6270ad43398d1bce89659f9a43dbee136e25bada..68e0a478dff7c95f98a1052b08002a8c396136df 100644
(file)
--- a/
libs/ardour/midi_playlist_source.cc
+++ b/
libs/ardour/midi_playlist_source.cc
@@
-20,25
+20,10
@@
#include "libardour-config.h"
#endif
#include "libardour-config.h"
#endif
-#include <vector>
-#include <cstdio>
-
-#include <glibmm/fileutils.h>
-#include <glibmm/miscutils.h>
-
#include "pbd/error.h"
#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_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 "i18n.h"
@@
-46,6
+31,17
@@
using namespace std;
using namespace ARDOUR;
using namespace PBD;
using namespace ARDOUR;
using namespace PBD;
+namespace ARDOUR {
+class MidiStateTracker;
+class Session;
+template <typename T> class MidiRingBuffer;
+}
+
+namespace Evoral {
+template <typename T> class EventSink;
+template <typename Time> 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
/*******************************************************************************
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;
}
return node;
}
-
int
MidiPlaylistSource::set_state (const XMLNode& node, int version)
{
int
MidiPlaylistSource::set_state (const XMLNode& node, int version)
{
@@
-126,7
+121,7
@@
MidiPlaylistSource::length (framepos_t) const
return extent.second - extent.first;
}
return extent.second - extent.first;
}
-frame
pos
_t
+frame
cnt
_t
MidiPlaylistSource::read_unlocked (Evoral::EventSink<framepos_t>& dst,
framepos_t /*position*/,
framepos_t start, framecnt_t cnt,
MidiPlaylistSource::read_unlocked (Evoral::EventSink<framepos_t>& dst,
framepos_t /*position*/,
framepos_t start, framecnt_t cnt,
@@
-141,10
+136,10
@@
MidiPlaylistSource::read_unlocked (Evoral::EventSink<framepos_t>& dst,
return mp->read (dst, start, cnt);
}
return mp->read (dst, start, cnt);
}
-frame
pos
_t
-MidiPlaylistSource::write_unlocked (MidiRingBuffer<framepos_t>&
dst
,
- framepos_t,
- framecnt_t)
+frame
cnt
_t
+MidiPlaylistSource::write_unlocked (MidiRingBuffer<framepos_t>&,
+
framepos_t,
+
framecnt_t)
{
fatal << string_compose (_("programming error: %1"), "MidiPlaylistSource::write_unlocked() called - should be impossible") << endmsg;
/*NOTREACHED*/
{
fatal << string_compose (_("programming error: %1"), "MidiPlaylistSource::write_unlocked() called - should be impossible") << endmsg;
/*NOTREACHED*/