create_espeak_ng_FileInMemoryManager.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. /* create_espeak_ng_FileInMemoryManager.cpp
  2. *
  3. * Copyright (C) 2017 David Weenink
  4. *
  5. * This code is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 2 of the License, or (at
  8. * your option) any later version.
  9. *
  10. * This code is distributed in the hope that it will be useful, but
  11. * WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * ainteger with this work. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #include "espeakdata_FileInMemory.h"
  19. autoFileInMemoryManager create_espeak_ng_FileInMemoryManager () {
  20. try{
  21. autoFileInMemorySet espeak_ng = create_espeak_ng_FileInMemorySet ();
  22. autoFileInMemoryManager me = FileInMemoryManager_create (espeak_ng.get());
  23. return me;
  24. } catch (MelderError) {
  25. Melder_throw (U"FileInMemoryManager for espeak-ng not created.");
  26. }
  27. }
  28. /* End of file create_espeak_ng_FileInMemoryManager.cpp */