summaryrefslogtreecommitdiff
path: root/libs/ardour/midi_playlist_source.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-09-18 12:39:17 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2017-09-18 12:39:17 -0400
commit30b087ab3d28f1585987fa3f6ae006562ae192e3 (patch)
tree620ae0250b5d77f90a18f8c2b83be61e4fe7b0b5 /libs/ardour/midi_playlist_source.cc
parentcb956e3e480716a3efd280a5287bdd7bee1cedc5 (diff)
globally change all use of "frame" to refer to audio into "sample".
Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode and video in order to keep the legible
Diffstat (limited to 'libs/ardour/midi_playlist_source.cc')
-rw-r--r--libs/ardour/midi_playlist_source.cc32
1 files changed, 16 insertions, 16 deletions
diff --git a/libs/ardour/midi_playlist_source.cc b/libs/ardour/midi_playlist_source.cc
index 8b7e87889e..80219cb9a3 100644
--- a/libs/ardour/midi_playlist_source.cc
+++ b/libs/ardour/midi_playlist_source.cc
@@ -54,7 +54,7 @@ on other ways to approach this issue.
********************************************************************************/
MidiPlaylistSource::MidiPlaylistSource (Session& s, const ID& orig, const std::string& name, boost::shared_ptr<MidiPlaylist> p,
- uint32_t /*chn*/, frameoffset_t begin, framecnt_t len, Source::Flag flags)
+ uint32_t /*chn*/, sampleoffset_t begin, samplecnt_t len, Source::Flag flags)
: Source (s, DataType::MIDI, name)
, MidiSource (s, name, flags)
, PlaylistSource (s, orig, name, p, DataType::MIDI, begin, len, flags)
@@ -114,20 +114,20 @@ MidiPlaylistSource::set_state (const XMLNode& node, int version, bool with_desce
return 0;
}
-framecnt_t
-MidiPlaylistSource::length (framepos_t) const
+samplecnt_t
+MidiPlaylistSource::length (samplepos_t) const
{
- pair<framepos_t,framepos_t> extent = _playlist->get_extent();
+ pair<samplepos_t,samplepos_t> extent = _playlist->get_extent();
return extent.second - extent.first;
}
-framecnt_t
+samplecnt_t
MidiPlaylistSource::read_unlocked (const Lock& lock,
- Evoral::EventSink<framepos_t>& dst,
- framepos_t /*position*/,
- framepos_t start,
- framecnt_t cnt,
- Evoral::Range<framepos_t>* loop_range,
+ Evoral::EventSink<samplepos_t>& dst,
+ samplepos_t /*position*/,
+ samplepos_t start,
+ samplecnt_t cnt,
+ Evoral::Range<samplepos_t>* loop_range,
MidiStateTracker*,
MidiChannelFilter*) const
{
@@ -140,11 +140,11 @@ MidiPlaylistSource::read_unlocked (const Lock& lock,
return mp->read (dst, start, cnt, loop_range);
}
-framecnt_t
+samplecnt_t
MidiPlaylistSource::write_unlocked (const Lock&,
- MidiRingBuffer<framepos_t>&,
- framepos_t,
- framecnt_t)
+ MidiRingBuffer<samplepos_t>&,
+ samplepos_t,
+ samplecnt_t)
{
fatal << string_compose (_("programming error: %1"), "MidiPlaylistSource::write_unlocked() called - should be impossible") << endmsg;
abort(); /*NOTREACHED*/
@@ -159,9 +159,9 @@ MidiPlaylistSource::append_event_beats(const Glib::Threads::Mutex::Lock& /*lock*
}
void
-MidiPlaylistSource::append_event_frames(const Glib::Threads::Mutex::Lock& /*lock*/, const Evoral::Event<framepos_t>& /* ev */, framepos_t /*source_start*/)
+MidiPlaylistSource::append_event_samples(const Glib::Threads::Mutex::Lock& /*lock*/, const Evoral::Event<samplepos_t>& /* ev */, samplepos_t /*source_start*/)
{
- fatal << string_compose (_("programming error: %1"), "MidiPlaylistSource::append_event_frames() called - should be impossible") << endmsg;
+ fatal << string_compose (_("programming error: %1"), "MidiPlaylistSource::append_event_samples() called - should be impossible") << endmsg;
abort(); /*NOTREACHED*/
}