Mercurial > hg > svapp
comparison audioio/AudioGenerator.cpp @ 40:a996c0ef6177
* Exceptions for file read etc
author | Chris Cannam |
---|---|
date | Wed, 28 Jun 2006 15:42:04 +0000 |
parents | 54287e5e7451 |
children | a4a05344c7d6 |
comparison
equal
deleted
inserted
replaced
39:4ed2448582cc | 40:a996c0ef6177 |
---|---|
17 | 17 |
18 #include "base/TempDirectory.h" | 18 #include "base/TempDirectory.h" |
19 #include "base/PlayParameters.h" | 19 #include "base/PlayParameters.h" |
20 #include "base/PlayParameterRepository.h" | 20 #include "base/PlayParameterRepository.h" |
21 #include "base/Pitch.h" | 21 #include "base/Pitch.h" |
22 #include "base/Exceptions.h" | |
22 | 23 |
23 #include "model/NoteModel.h" | 24 #include "model/NoteModel.h" |
24 #include "model/DenseTimeValueModel.h" | 25 #include "model/DenseTimeValueModel.h" |
25 #include "model/SparseOneDimensionalModel.h" | 26 #include "model/SparseOneDimensionalModel.h" |
26 | 27 |
183 { | 184 { |
184 if (m_sampleDir != "") return m_sampleDir; | 185 if (m_sampleDir != "") return m_sampleDir; |
185 | 186 |
186 try { | 187 try { |
187 m_sampleDir = TempDirectory::instance()->getSubDirectoryPath("samples"); | 188 m_sampleDir = TempDirectory::instance()->getSubDirectoryPath("samples"); |
188 } catch (TempDirectory::DirectoryCreationFailed f) { | 189 } catch (DirectoryCreationFailed f) { |
189 std::cerr << "WARNING: AudioGenerator::getSampleDir: Failed to create " | 190 std::cerr << "WARNING: AudioGenerator::getSampleDir: Failed to create " |
190 << "temporary sample directory" << std::endl; | 191 << "temporary sample directory" << std::endl; |
191 m_sampleDir = ""; | 192 m_sampleDir = ""; |
192 return ""; | 193 return ""; |
193 } | 194 } |