summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/source.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-02-18 19:45:52 +0000
committerDavid Robillard <d@drobilla.net>2008-02-18 19:45:52 +0000
commitfbfb26b45c075da880861cf2303b851fe1acc0e8 (patch)
tree4673a82d5516535b17e9c60ffd57a206801a1e01 /libs/ardour/ardour/source.h
parent1b2fe7bf34f1e05ab4e3975ac91aeda28a4d11d0 (diff)
Preliminary (read: kludgey) MIDI import support.
Only really works when tracks contain only channel 1 data for now. git-svn-id: svn://localhost/ardour2/branches/3.0@3083 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/source.h')
-rw-r--r--libs/ardour/ardour/source.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/ardour/ardour/source.h b/libs/ardour/ardour/source.h
index 3109cb00ff..a2ee96bf63 100644
--- a/libs/ardour/ardour/source.h
+++ b/libs/ardour/ardour/source.h
@@ -50,8 +50,9 @@ class Source : public SessionObject, public ARDOUR::Readable
time_t timestamp() const { return _timestamp; }
void stamp (time_t when) { _timestamp = when; }
- /** @return the number of items in this source */
nframes_t length() const { return _length; }
+
+ virtual Glib::ustring path() const = 0;
virtual nframes_t natural_position() const { return 0; }
@@ -88,10 +89,10 @@ class Source : public SessionObject, public ARDOUR::Readable
AnalysisFeatureList transients;
std::string get_transients_path() const;
int load_transients (const std::string&);
+
+ void update_length (nframes_t pos, nframes_t cnt);
protected:
- void update_length (nframes_t pos, nframes_t cnt);
-
DataType _type;
time_t _timestamp;
nframes_t _length;