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.

PresetExtractor.h 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. ZynAddSubFX - a software synthesizer
  3. PresetExtractor.h - RT Safe Copy/Paste
  4. Copyright (C) 2016 Mark McCurry
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License
  7. as published by the Free Software Foundation; either version 2
  8. of the License, or (at your option) any later version.
  9. */
  10. #pragma once
  11. #include <string>
  12. #include <rtosc/ports.h>
  13. namespace zyncarla {
  14. extern const rtosc::Ports real_preset_ports;
  15. extern const rtosc::Ports preset_ports;
  16. struct Clipboard {
  17. std::string data;
  18. std::string type;
  19. };
  20. Clipboard clipboardCopy(class MiddleWare &mw, std::string url);
  21. void presetCopy(MiddleWare &mw, std::string url, std::string name);
  22. void presetPaste(MiddleWare &mw, std::string url, std::string name);
  23. void presetCopyArray(MiddleWare &mw, std::string url, int field, std::string name);
  24. void presetPasteArray(MiddleWare &mw, std::string url, int field, std::string name);
  25. void presetPaste(std::string url, int);
  26. void presetDelete(int);
  27. void presetRescan();
  28. std::string presetClipboardType();
  29. bool presetCheckClipboardType();
  30. }