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.

34 lines
635B

  1. #pragma once
  2. #include "util/common.hpp"
  3. #include "midi.hpp"
  4. #pragma GCC diagnostic push
  5. #ifndef __clang__
  6. #pragma GCC diagnostic ignored "-Wsuggest-override"
  7. #endif
  8. #include "rtmidi/RtMidi.h"
  9. #pragma GCC diagnostic pop
  10. namespace rack {
  11. struct RtMidiInputDevice : MidiInputDevice {
  12. RtMidiIn *rtMidiIn;
  13. /** Cached */
  14. std::string deviceName;
  15. RtMidiInputDevice(int driver, int device);
  16. ~RtMidiInputDevice();
  17. };
  18. std::vector<int> rtmidiGetDrivers();
  19. int rtmidiGetDeviceCount(int driver);
  20. std::string rtmidiGetDeviceName(int driver, int device);
  21. RtMidiInputDevice *rtmidiGetDevice(int driver, int device);
  22. } // namespace rack