summaryrefslogtreecommitdiff
path: root/libs/ardour/source.cc
diff options
context:
space:
mode:
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) {