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

Method BGM_GetTicks

src/audio.cpp:45–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45int EmptyAudio::BGM_GetTicks() const {
46 if (!playing) {
47 return 0;
48 }
49
50 // Time since BGM_Play was called, works for everything except MIDI
51 return (Player::GetFrames() - bgm_starttick + 1) / Game_Clock::GetTargetGameFps();
52}
53
54void EmptyAudio::vGetConfig(Game_ConfigAudio&) const {
55 // Not supported. The audio menu is disabled.

Callers 2

OtherMethod · 0.45
GetMidiTicksMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected