#pragma once #include #include #include #include namespace rack { namespace app { struct AudioWidget : LedDisplay { LedDisplayChoice* driverChoice; LedDisplaySeparator* driverSeparator; LedDisplayChoice* deviceChoice; LedDisplaySeparator* deviceSeparator; LedDisplayChoice* sampleRateChoice; LedDisplaySeparator* sampleRateSeparator; LedDisplayChoice* bufferSizeChoice; void setAudioPort(audio::Port* port); }; /** Appends menu items to the given menu with driver, device, etc. Useful alternative to putting an AudioWidget on your module's panel. */ void appendAudioMenu(ui::Menu* menu, audio::Port* port); } // namespace app } // namespace rack