changeset 40:a996c0ef6177

* Exceptions for file read etc
author Chris Cannam
date Wed, 28 Jun 2006 15:42:04 +0000
parents 4ed2448582cc
children a4a05344c7d6
files audioio/AudioGenerator.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/audioio/AudioGenerator.cpp	Thu Jun 15 12:28:47 2006 +0000
+++ b/audioio/AudioGenerator.cpp	Wed Jun 28 15:42:04 2006 +0000
@@ -19,6 +19,7 @@
 #include "base/PlayParameters.h"
 #include "base/PlayParameterRepository.h"
 #include "base/Pitch.h"
+#include "base/Exceptions.h"
 
 #include "model/NoteModel.h"
 #include "model/DenseTimeValueModel.h"
@@ -185,7 +186,7 @@
 
     try {
         m_sampleDir = TempDirectory::instance()->getSubDirectoryPath("samples");
-    } catch (TempDirectory::DirectoryCreationFailed f) {
+    } catch (DirectoryCreationFailed f) {
         std::cerr << "WARNING: AudioGenerator::getSampleDir: Failed to create "
                   << "temporary sample directory" << std::endl;
         m_sampleDir = "";