| 69 | } |
| 70 | |
| 71 | Game_ConfigAudio AudioInterface::GetConfig() const { |
| 72 | auto acfg = cfg; |
| 73 | acfg.Hide(); |
| 74 | |
| 75 | #if !defined(HAVE_FLUIDSYNTH) && !defined(HAVE_FLUIDLITE) |
| 76 | acfg.fluidsynth_midi.SetOptionVisible(false); |
| 77 | acfg.soundfont.SetOptionVisible(false); |
| 78 | #endif |
| 79 | #ifndef HAVE_LIBWILDMIDI |
| 80 | acfg.wildmidi_midi.SetOptionVisible(false); |
| 81 | #endif |
| 82 | #ifndef HAVE_NATIVE_MIDI |
| 83 | acfg.native_midi.SetOptionVisible(false); |
| 84 | #endif |
| 85 | #ifndef WANT_FMMIDI |
| 86 | acfg.fmmidi_midi.SetOptionVisible(false); |
| 87 | #endif |
| 88 | |
| 89 | #ifdef __ANDROID__ |
| 90 | // FIXME: URI encoded SAF paths are not supported |
| 91 | acfg.soundfont.SetOptionVisible(false); |
| 92 | #endif |
| 93 | |
| 94 | vGetConfig(acfg); |
| 95 | return acfg; |
| 96 | } |
| 97 | |
| 98 | int AudioInterface::BGM_GetGlobalVolume() const { |
| 99 | return cfg.music_volume.Get(); |
no test coverage detected