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

Method SetFade

src/audio_generic.cpp:517–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517void GenericAudio::BgmChannel::SetFade(int fade) {
518 if (midi_out_used) {
519 instance->midi_thread->GetMidiOut().SetFade(0, std::chrono::milliseconds(fade));
520 } else if (decoder) {
521 decoder->SetFade(0, std::chrono::milliseconds(fade));
522 }
523}
524
525void GenericAudio::BgmChannel::SetVolume(int volume) {
526 if (midi_out_used) {

Callers 2

BGM_FadeMethod · 0.45
PlayOnChannelMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected