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

Method Create

src/audio_midi.cpp:51–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49} works;
50
51std::unique_ptr<AudioDecoderBase> MidiDecoder::Create(bool resample) {
52 std::unique_ptr<AudioDecoderBase> mididec;
53
54 if (Audio().GetFluidsynthEnabled()) {
55 mididec = CreateFluidsynth(resample);
56 }
57
58 if (!mididec && Audio().GetWildMidiEnabled()) {
59 mididec = CreateWildMidi(resample);
60 }
61
62 if (!mididec) {
63 mididec = CreateFmMidi(resample);
64 }
65
66 return mididec;
67}
68
69std::unique_ptr<AudioDecoderBase> MidiDecoder::CreateFluidsynth(bool resample) {
70 std::unique_ptr<AudioDecoderBase> mididec;

Callers

nothing calls this directly

Calls 2

GetFluidsynthEnabledMethod · 0.80
GetWildMidiEnabledMethod · 0.80

Tested by

no test coverage detected