MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / DropdownUpdated

Method DropdownUpdated

Source/UserPrefsEditor.cpp:466–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466void UserPrefsEditor::DropdownUpdated(DropdownList* list, int oldVal, double time)
467{
468 if (list == UserPrefs.devicetype.GetDropdown())
469 {
470 UpdateDropdowns({ UserPrefs.audio_output_device.GetDropdown(), UserPrefs.audio_input_device.GetDropdown(), UserPrefs.samplerate.GetDropdown(), UserPrefs.buffersize.GetDropdown() });
471 }
472
473 if (list == UserPrefs.audio_output_device.GetDropdown())
474 {
475 UpdateDropdowns({ UserPrefs.samplerate.GetDropdown(), UserPrefs.buffersize.GetDropdown() });
476 }
477
478 if (list == UserPrefs.audio_input_device.GetDropdown())
479 {
480 UpdateDropdowns({ UserPrefs.samplerate.GetDropdown(), UserPrefs.buffersize.GetDropdown() });
481 }
482}
483
484void UserPrefsEditor::RadioButtonUpdated(RadioButton* radio, int oldVal, double time)
485{

Callers

nothing calls this directly

Calls 1

GetDropdownMethod · 0.45

Tested by

no test coverage detected