diff options
author | Carl Hetherington <carl@carlh.net> | 2010-09-06 12:34:11 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-09-06 12:34:11 +0000 |
commit | ea2648503b520e3da54263ce0bafb388d22a9cd8 (patch) | |
tree | 3c3142d6ae31e256945b4254c5cac494c332661d /libs/ardour/ardour | |
parent | 1206b2973dc6c55bf81b4adfed928b95ac94bb9c (diff) |
Cleanup of region drag code to be a bit more efficient and shorter. Fixes crashes when dragging regions to the wrong track type.
git-svn-id: svn://localhost/ardour2/branches/3.0@7744 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/audio_track.h | 4 | ||||
-rw-r--r-- | libs/ardour/ardour/midi_track.h | 4 | ||||
-rw-r--r-- | libs/ardour/ardour/track.h | 2 |
3 files changed, 10 insertions, 0 deletions
diff --git a/libs/ardour/ardour/audio_track.h b/libs/ardour/ardour/audio_track.h index c2428339c7..ecd88b94e5 100644 --- a/libs/ardour/ardour/audio_track.h +++ b/libs/ardour/ardour/audio_track.h @@ -45,6 +45,10 @@ class AudioTrack : public Track void use_new_diskstream (); void set_diskstream (boost::shared_ptr<Diskstream>); + DataType data_type () const { + return DataType::AUDIO; + } + int export_stuff (BufferSet& bufs, sframes_t start_frame, nframes_t nframes, bool enable_processing = true); void freeze_me (InterThreadInfo&); diff --git a/libs/ardour/ardour/midi_track.h b/libs/ardour/ardour/midi_track.h index 7e0525608d..ea2b0804f8 100644 --- a/libs/ardour/ardour/midi_track.h +++ b/libs/ardour/ardour/midi_track.h @@ -48,6 +48,10 @@ public: void set_diskstream (boost::shared_ptr<Diskstream>); void set_record_enabled (bool yn, void *src); + DataType data_type () const { + return DataType::MIDI; + } + void set_latency_delay (nframes_t); int export_stuff (BufferSet& bufs, nframes_t nframes, sframes_t end_frame); diff --git a/libs/ardour/ardour/track.h b/libs/ardour/ardour/track.h index e40f197436..dfdc409659 100644 --- a/libs/ardour/ardour/track.h +++ b/libs/ardour/ardour/track.h @@ -60,6 +60,8 @@ class Track : public Route, public PublicDiskstream bool needs_butler() const { return _needs_butler; } void toggle_monitor_input (); + virtual DataType data_type () const = 0; + bool can_record(); virtual void use_new_diskstream () = 0; |