summaryrefslogtreecommitdiff
path: root/libs/ardour/source.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-08-29 21:21:48 +0000
committerDavid Robillard <d@drobilla.net>2006-08-29 21:21:48 +0000
commit82232f06ba3eea4a2b4342ad91fab552f4044402 (patch)
treed517cb47c017f51e2ecd9450624b86eb70d9f97b /libs/ardour/source.cc
parent25d1670a61d19e795227b939a98be9cf5a050c67 (diff)
Merged with trunk R861
Possible new bugs - not very thoroughly tested, but at least functional at first glance git-svn-id: svn://localhost/ardour2/branches/midi@870 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/source.cc')
-rw-r--r--libs/ardour/source.cc15
1 files changed, 1 insertions, 14 deletions
diff --git a/libs/ardour/source.cc b/libs/ardour/source.cc
index 0b15a8b5b8..d218e2cf94 100644
--- a/libs/ardour/source.cc
+++ b/libs/ardour/source.cc
@@ -51,7 +51,6 @@ Source::Source (string name, DataType type)
assert(_name.find("/") == string::npos);
_name = name;
- _use_cnt = 0;
_timestamp = 0;
_length = 0;
}
@@ -59,7 +58,6 @@ Source::Source (string name, DataType type)
Source::Source (const XMLNode& node)
: _type(DataType::AUDIO)
{
- _use_cnt = 0;
_timestamp = 0;
_length = 0;
@@ -71,6 +69,7 @@ Source::Source (const XMLNode& node)
Source::~Source ()
{
+ notify_callbacks ();
}
XMLNode&
@@ -122,18 +121,6 @@ Source::set_state (const XMLNode& node)
}
void
-Source::use ()
-{
- _use_cnt++;
-}
-
-void
-Source::release ()
-{
- if (_use_cnt) --_use_cnt;
-}
-
-void
Source::update_length (jack_nframes_t pos, jack_nframes_t cnt)
{
if (pos + cnt > _length) {