module Audio
class << self
alias_method :seph_audioduration_audio_pbgm, :play_bgm
alias_method :seph_audioduration_audio_update, :update
@bgm_duration = 0
def play_bgm(*args)
seph_audioduration_audio_pbgm(*args)
@bgm_duration = 0
end
def update
seph_audioduration_audio_update
@bgm_duration += 1
end
def bgm_duration
return @bgm_duration
end
end
end