MCPcopy Create free account
hub / github.com/EasyRPG/Player / GetConfig

Method GetConfig

src/audio.cpp:71–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71Game_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
98int AudioInterface::BGM_GetGlobalVolume() const {
99 return cfg.music_volume.Get();

Callers 12

RefreshVideoMethod · 0.45
RefreshAudioMethod · 0.45
RefreshAudioMidiMethod · 0.45
RefreshAudioSoundfontMethod · 0.45
RefreshInputMethod · 0.45
RefreshButtonListMethod · 0.45
StartMethod · 0.45
SimulateButtonPressMethod · 0.45
UpdateInputMethod · 0.45
SaveConfigMethod · 0.45
n3ds_audio_threadFunction · 0.45

Calls 2

HideMethod · 0.80
SetOptionVisibleMethod · 0.80

Tested by

no test coverage detected