add an option to select audio device

This commit is contained in:
tildearrow 2022-02-13 21:42:57 -05:00
parent d2d60c4f1a
commit 53482105dc
8 changed files with 119 additions and 40 deletions

View file

@ -169,6 +169,7 @@ class DivEngine {
String configFile;
String lastError;
String warnings;
std::vector<String> audioDevs;
struct SamplePreview {
int sample;
@ -505,6 +506,12 @@ class DivEngine {
// set the view mode.
void setView(DivStatusView which);
// get available audio devices
std::vector<String>& getAudioDevices();
// rescan audio devices
void rescanAudioDevices();
// set the console mode.
void setConsoleMode(bool enable);