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

Method SetPitch

src/audio_generic.cpp:533–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533void GenericAudio::BgmChannel::SetPitch(int pitch) {
534 if (midi_out_used) {
535 instance->midi_thread->GetMidiOut().SetPitch(pitch);
536 } else if (decoder) {
537 decoder->SetPitch(pitch);
538 }
539}
540
541bool GenericAudio::BgmChannel::IsUsed() const {
542 return decoder || midi_out_used;

Callers 5

BGM_PitchMethod · 0.45
PlayOnChannelMethod · 0.45
BGM_PlayMethod · 0.45
BGM_PitchMethod · 0.45
SE_PlayMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected