Implement I_MIDIPlaying, I_MusicPlaying, I_MusicPaused in other targets

# Conflicts:
#	src/nds/i_sound.c
#	src/sdl12/sdl_sound.c
#	src/win32ce/win_snd.c
This commit is contained in:
mazmazz 2018-08-15 01:59:01 -04:00
parent d39f804662
commit eb52a14433
4 changed files with 62 additions and 0 deletions

View File

@ -74,6 +74,21 @@ void I_ResumeSong(INT32 handle)
(void)handle;
}
boolean I_MIDIPlaying(void)
{
return false;
}
boolean I_MusicPlaying(void)
{
return false;
}
boolean I_MusicPaused(void)
{
return false;
}
//
// MIDI I/O
//

View File

@ -474,6 +474,7 @@ void I_StopSong(INT32 handle)
stop_midi();
}
// Is the song playing?
#if 0
int I_QrySongPlaying(int handle)
@ -560,3 +561,18 @@ UINT32 I_GetSongPosition(void)
{
return 0.;
}
boolean I_MIDIPlaying(void)
{
return (boolean)currsong && music_started;
}
boolean I_MusicPlaying(void)
{
return (boolean)currsong && music_started;
}
boolean I_MusicPaused(void)
{
return false;
}

View File

@ -156,3 +156,18 @@ UINT32 I_GetSongPosition(void)
{
return 0;
}
boolean I_MIDIPlaying(void)
{
return false;
}
boolean I_MusicPlaying(void)
{
return false;
}
boolean I_MusicPaused(void)
{
return false;
}

View File

@ -1649,6 +1649,22 @@ void I_StopSong(INT32 handle)
#endif
}
boolean I_MIDIPlaying(void)
{
// todo: no way to tell specifically if MIDI is playing, implement midimode
return !nomidimusic && nodigimusic && musicStarted;
}
boolean I_MusicPlaying(void)
{
return musicStarted;
}
boolean I_MusicPaused(void)
{
return Mix_PausedMusic();
}
void I_UnRegisterSong(INT32 handle)
{
#ifdef HAVE_MIXER