Skip to content

Commit

Permalink
Offer the current playing music TimingData if anyone wants it
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Nov 4, 2018
1 parent 86086cb commit 1ebb47f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/GameSoundManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,13 @@ GameSoundManager::GetRageSoundPlaying()
{
LockMut(*g_Mutex);
return g_Playing->m_Music;
}

TimingData
GameSoundManager::GetPlayingMusicTiming()
{
LockMut(*g_Mutex);
return g_Playing->m_Timing;
}

void
Expand Down
1 change: 1 addition & 0 deletions src/GameSoundManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class GameSoundManager

static float GetPlayerBalance(PlayerNumber pn);
RageSound* GetRageSoundPlaying();
TimingData GetPlayingMusicTiming();

// Lua
void PushSelf(lua_State* L);
Expand Down

0 comments on commit 1ebb47f

Please sign in to comment.