summaryrefslogtreecommitdiff
path: root/libs/ardour/smf_source.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-08-11 00:22:57 +0000
committerDavid Robillard <d@drobilla.net>2007-08-11 00:22:57 +0000
commit861181d7421012486e36327c464b957ec08e396b (patch)
treed569f780e0e9066c6a814ffedeab0e74675a08a8 /libs/ardour/smf_source.cc
parentb6855bc209c062daa961e0ef4227621a43bcd332 (diff)
Fix MIDI file names on recording (don't write out a ton of useless empty .mid files).
Preliminary hooks for writing model to file (still does nothing). git-svn-id: svn://localhost/ardour2/trunk@2289 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/smf_source.cc')
-rw-r--r--libs/ardour/smf_source.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/ardour/smf_source.cc b/libs/ardour/smf_source.cc
index 686fb96af3..92dfed3cec 100644
--- a/libs/ardour/smf_source.cc
+++ b/libs/ardour/smf_source.cc
@@ -113,7 +113,7 @@ bool
SMFSource::removable () const
{
return (_flags & Removable) && ((_flags & RemoveAtDestroy) ||
- ((_flags & RemovableIfEmpty) && is_empty (_path)));
+ ((_flags & RemovableIfEmpty) && is_empty()));
}
int
@@ -720,11 +720,13 @@ SMFSource::set_source_name (string newname, bool destructive)
}
bool
-SMFSource::is_empty (string path)
+SMFSource::is_empty () const
{
- /* XXX fix me */
+ bool ret = (_track_size > 4);
- return false;
+ cerr << name() << " IS EMPTY: " << ret << endl;
+
+ return ret;
}