ApiConfig.hpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* Copyright 2025, Ableton AG, Berlin. All rights reserved.
  2. *
  3. * This program is free software: you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License as published by
  5. * the Free Software Foundation, either version 2 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. *
  16. * If you would like to incorporate Link into a proprietary software application,
  17. * please contact <link-devs@ableton.com>.
  18. */
  19. #pragma once
  20. #ifndef LINK_API_CONTROLLER
  21. #include <ableton/platforms/Config.hpp>
  22. #include <ableton/link_audio/Buffer.hpp>
  23. #include <ableton/link_audio/Id.hpp>
  24. #include <ableton/link_audio/SessionController.hpp>
  25. #include <ableton/link_audio/Sink.hpp>
  26. namespace ableton
  27. {
  28. namespace link
  29. {
  30. template <typename Clock>
  31. using ApiController = ableton::link_audio::SessionController<PeerCountCallback,
  32. TempoCallback,
  33. StartStopStateCallback,
  34. Clock,
  35. platform::Random,
  36. platform::IoContext>;
  37. } // namespace link
  38. using ChannelId = link_audio::Id;
  39. using PeerId = link_audio::Id;
  40. using SessionId = link_audio::Id;
  41. } // namespace ableton
  42. #define LINK_API_CONTROLLER YES
  43. #endif
  44. #include <ableton/Link.hpp>