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.

20 lines
471B

  1. #pragma once
  2. /**
  3. This file provides routines for using zyn's tmp files.
  4. */
  5. class TmpFileMgr
  6. {
  7. static constexpr const char* tmp_nam_prefix = "/tmp/zynaddsubfx_";
  8. public:
  9. //! returns file name to where UDP port is saved
  10. std::string get_tmp_nam() const;
  11. //! creates a tmp file with given UDP port information
  12. void create_tmp_file(unsigned server_port) const;
  13. //! cleans up as many tmp files as possible
  14. void clean_up_tmp_nams() const;
  15. };