mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-08 01:02:25 +00:00
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:
parent
d39f804662
commit
eb52a14433
4 changed files with 62 additions and 0 deletions
|
@ -74,6 +74,21 @@ void I_ResumeSong(INT32 handle)
|
||||||
(void)handle;
|
(void)handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean I_MIDIPlaying(void)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean I_MusicPlaying(void)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean I_MusicPaused(void)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// MIDI I/O
|
// MIDI I/O
|
||||||
//
|
//
|
||||||
|
|
|
@ -474,6 +474,7 @@ void I_StopSong(INT32 handle)
|
||||||
stop_midi();
|
stop_midi();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Is the song playing?
|
// Is the song playing?
|
||||||
#if 0
|
#if 0
|
||||||
int I_QrySongPlaying(int handle)
|
int I_QrySongPlaying(int handle)
|
||||||
|
@ -560,3 +561,18 @@ UINT32 I_GetSongPosition(void)
|
||||||
{
|
{
|
||||||
return 0.;
|
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;
|
||||||
|
}
|
||||||
|
|
|
@ -156,3 +156,18 @@ UINT32 I_GetSongPosition(void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean I_MIDIPlaying(void)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean I_MusicPlaying(void)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean I_MusicPaused(void)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
|
@ -1649,6 +1649,22 @@ void I_StopSong(INT32 handle)
|
||||||
#endif
|
#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)
|
void I_UnRegisterSong(INT32 handle)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_MIXER
|
#ifdef HAVE_MIXER
|
||||||
|
|
Loading…
Reference in a new issue