diff plugin/plugins/SamplePlayer.cpp @ 81:f277a171749d

* Pull out temporary directory management into its own class * Make sure playback plugins get a default sample path in their original play parameters configuration * Save play parameters to .sv file (we aren't reloading yet though)
author Chris Cannam
date Tue, 25 Apr 2006 22:14:43 +0000
parents 163f3428bbe0
children b2067aff8cd6
line wrap: on
line diff
--- a/plugin/plugins/SamplePlayer.cpp	Mon Apr 24 17:06:32 2006 +0000
+++ b/plugin/plugins/SamplePlayer.cpp	Tue Apr 25 22:14:43 2006 +0000
@@ -217,6 +217,9 @@
 
 	QMutexLocker locker(&player->m_mutex);
 
+
+        //!!! What do we do if receiving an antique path pointing at things that no longer exist?
+
         player->m_samplePath = value;
 
         if (player->m_sampleSearchComplete) {
@@ -340,6 +343,8 @@
 {
     if (m_sampleSearchComplete) return;
 
+    m_samples.clear();
+
     std::cerr << "Current working directory is \"" << getcwd(0, 0) << "\"" << std::endl;
 
     std::cerr << "SamplePlayer::searchSamples: Path is \""