I_GetMusicLength declarations for other interfaces

This commit is contained in:
mazmazz 2018-08-18 14:18:49 -04:00
parent c6035f5956
commit 6b35857ed1
5 changed files with 31 additions and 2 deletions

View file

@ -158,6 +158,11 @@ boolean I_SetSongSpeed(float speed)
return false;
}
UINT32 I_GetMusicLength(void)
{
return 0;
}
boolean I_SetMusicPosition(UINT32 position)
{
(void)position;

View file

@ -551,6 +551,11 @@ boolean I_SetSongSpeed(float speed)
return false;
}
UINT32 I_GetMusicLength(void)
{
return 0;
}
boolean I_SetMusicPosition(UINT32 position)
{
(void)position;
@ -559,7 +564,7 @@ boolean I_SetMusicPosition(UINT32 position)
UINT32 I_GetMusicPosition(void)
{
return 0.;
return 0;
}
boolean I_MIDIPlaying(void)

View file

@ -146,6 +146,11 @@ boolean I_SetSongTrack(int track)
return false;
}
UINT32 I_GetMusicLength(void)
{
return 0;
}
boolean I_SetMusicPosition(UINT32 position)
{
(void)position;

View file

@ -1989,6 +1989,11 @@ boolean I_SetSongSpeed(float speed)
return false;
}
UINT32 I_GetMusicLength(void)
{
return 0;
}
boolean I_SetMusicPosition(UINT32 position)
{
(void)position;

View file

@ -774,6 +774,15 @@ boolean I_SetSongSpeed(float speed)
return true;
}
UINT32 I_GetMusicLength()
{
if (midimode)
return 0;
UINT32 length;
e = FMOD_Sound_GetLength(music_stream, length, FMOD_TIMEUNIT_MS);
return length;
}
boolean I_SetMusicPosition(UINT32 position)
{
if(midimode)