Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CarlaUtils4.cpp 1.8KB

10 years ago
10 years ago
10 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. * Carla Utility Tests
  3. * Copyright (C) 2013-2014 Filipe Coelho <falktx@falktx.com>
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * For a full copy of the GNU General Public License see the doc/GPL.txt file.
  16. */
  17. #ifdef NDEBUG
  18. # error Build this file with debug ON please
  19. #endif
  20. #include "CarlaBackendUtils.hpp"
  21. using namespace CarlaBackend;
  22. // -----------------------------------------------------------------------
  23. #define HAVE_JUCE
  24. #define HAVE_JUCE_LATER
  25. #undef CARLA_BACKEND_START_NAMESPACE
  26. #define CARLA_BACKEND_START_NAMESPACE namespace state_juce {
  27. #include "CarlaStateUtils.cpp"
  28. // -----------------------------------------------------------------------
  29. #undef CARLA_STATE_UTILS_HPP_INCLUDED
  30. // -----------------------------------------------------------------------
  31. #undef HAVE_JUCE
  32. #undef HAVE_JUCE_LATER
  33. #undef CARLA_BACKEND_START_NAMESPACE
  34. #define CARLA_BACKEND_START_NAMESPACE namespace state_qt {
  35. #include "CarlaStateUtils.cpp"
  36. // -----------------------------------------------------------------------
  37. // main
  38. int main()
  39. {
  40. state_juce::StateSave jsave;
  41. jsave.type = carla_strdup("NONE");
  42. carla_stdout(jsave.toString().toRawUTF8());
  43. state_qt::StateSave qsave;
  44. qsave.type = carla_strdup("NONE");
  45. carla_stdout(qsave.toString().toUtf8().constData());
  46. return 0;
  47. }
  48. // -----------------------------------------------------------------------