1 // Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html 2 3 #ifndef SPECTMORPH_WAVSET_REPO_HH 4 #define SPECTMORPH_WAVSET_REPO_HH 5 6 #include "smwavset.hh" 7 8 #include <mutex> 9 10 #include <map> 11 12 namespace SpectMorph 13 { 14 15 class WavSetRepo { 16 std::mutex mutex; 17 std::map<std::string, WavSet *> wav_set_map; 18 public: 19 ~WavSetRepo(); 20 21 WavSet *get (const std::string& filename); 22 23 static WavSetRepo *the(); // Singleton 24 }; 25 26 } 27 28 #endif 29