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

Method GetFormat

src/audio_midi.cpp:31–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#endif
30
31void MidiDecoder::GetFormat(int& freq, AudioDecoderBase::Format& format, int& channels) const {
32 freq = frequency;
33 format = AudioDecoderBase::Format::S16;
34 channels = 2;
35}
36
37bool MidiDecoder::SetFormat(int frequency, AudioDecoderBase::Format format, int channels) {
38 if (frequency != EP_MIDI_FREQ || channels != 2 || format != AudioDecoderBase::Format::S16)

Callers 3

DecodeMethod · 0.45
BGM_PlayMethod · 0.45
SE_PlayMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected