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.

AudioWidget.hpp 726B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include <app/common.hpp>
  3. #include <app/LedDisplay.hpp>
  4. #include <ui/Menu.hpp>
  5. #include <audio.hpp>
  6. namespace rack {
  7. namespace app {
  8. struct AudioWidget : LedDisplay {
  9. LedDisplayChoice* driverChoice;
  10. LedDisplaySeparator* driverSeparator;
  11. LedDisplayChoice* deviceChoice;
  12. LedDisplaySeparator* deviceSeparator;
  13. LedDisplayChoice* sampleRateChoice;
  14. LedDisplaySeparator* sampleRateSeparator;
  15. LedDisplayChoice* bufferSizeChoice;
  16. void setAudioPort(audio::Port* port);
  17. };
  18. /** Appends menu items to the given menu with driver, device, etc.
  19. Useful alternative to putting an AudioWidget on your module's panel.
  20. */
  21. void appendAudioMenu(ui::Menu* menu, audio::Port* port);
  22. } // namespace app
  23. } // namespace rack