mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Kill CD support
This commit is contained in:
parent
8eaee1c462
commit
913c07959e
11 changed files with 5 additions and 124 deletions
|
|
@ -482,7 +482,6 @@ OBJS:=$(i_main_o) \
|
||||||
$(OBJDIR)/lzf.o \
|
$(OBJDIR)/lzf.o \
|
||||||
$(OBJDIR)/vid_copy.o \
|
$(OBJDIR)/vid_copy.o \
|
||||||
$(OBJDIR)/b_bot.o \
|
$(OBJDIR)/b_bot.o \
|
||||||
$(i_cdmus_o) \
|
|
||||||
$(i_net_o) \
|
$(i_net_o) \
|
||||||
$(i_system_o) \
|
$(i_system_o) \
|
||||||
$(i_sound_o) \
|
$(i_sound_o) \
|
||||||
|
|
|
||||||
|
|
@ -355,7 +355,6 @@ endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
#determine the interface directory (where you put all i_*.c)
|
#determine the interface directory (where you put all i_*.c)
|
||||||
i_cdmus_o=$(OBJDIR)/i_cdmus.o
|
|
||||||
i_net_o=$(OBJDIR)/i_net.o
|
i_net_o=$(OBJDIR)/i_net.o
|
||||||
i_system_o=$(OBJDIR)/i_system.o
|
i_system_o=$(OBJDIR)/i_system.o
|
||||||
i_sound_o=$(OBJDIR)/i_sound.o
|
i_sound_o=$(OBJDIR)/i_sound.o
|
||||||
|
|
|
||||||
|
|
@ -825,9 +825,6 @@ void D_SRB2Loop(void)
|
||||||
S_UpdateSounds(); // move positional sounds
|
S_UpdateSounds(); // move positional sounds
|
||||||
S_UpdateClosedCaptions();
|
S_UpdateClosedCaptions();
|
||||||
|
|
||||||
// check for media change, loop music..
|
|
||||||
I_UpdateCD();
|
|
||||||
|
|
||||||
#ifdef HW3SOUND
|
#ifdef HW3SOUND
|
||||||
HW3S_EndFrameUpdate();
|
HW3S_EndFrameUpdate();
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -1470,10 +1467,6 @@ void D_SRB2Main(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize CD-Audio
|
|
||||||
if (M_CheckParm("-usecd") && !dedicated)
|
|
||||||
I_InitCD();
|
|
||||||
|
|
||||||
if (M_CheckParm("-noupload"))
|
if (M_CheckParm("-noupload"))
|
||||||
COM_BufAddText("downloading 0\n");
|
COM_BufAddText("downloading 0\n");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -861,10 +861,6 @@ void D_RegisterClientCommands(void)
|
||||||
CV_RegisterVar(&cv_midimusicvolume);
|
CV_RegisterVar(&cv_midimusicvolume);
|
||||||
CV_RegisterVar(&cv_numChannels);
|
CV_RegisterVar(&cv_numChannels);
|
||||||
|
|
||||||
// i_cdmus.c
|
|
||||||
CV_RegisterVar(&cd_volume);
|
|
||||||
CV_RegisterVar(&cdUpdate);
|
|
||||||
|
|
||||||
// screen.c
|
// screen.c
|
||||||
CV_RegisterVar(&cv_fullscreen);
|
CV_RegisterVar(&cv_fullscreen);
|
||||||
CV_RegisterVar(&cv_renderview);
|
CV_RegisterVar(&cv_renderview);
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
// See the 'LICENSE' file for more details.
|
// See the 'LICENSE' file for more details.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
/// \file i_sound.h
|
/// \file i_sound.h
|
||||||
/// \brief System interface, sound, music and CD
|
/// \brief System interface, sound, music
|
||||||
|
|
||||||
#ifndef __I_SOUND__
|
#ifndef __I_SOUND__
|
||||||
#define __I_SOUND__
|
#define __I_SOUND__
|
||||||
|
|
@ -241,53 +241,4 @@ boolean I_FadeSong(UINT8 target_volume, UINT32 ms, void (*callback)(void));
|
||||||
boolean I_FadeOutStopSong(UINT32 ms);
|
boolean I_FadeOutStopSong(UINT32 ms);
|
||||||
boolean I_FadeInPlaySong(UINT32 ms, boolean looping);
|
boolean I_FadeInPlaySong(UINT32 ms, boolean looping);
|
||||||
|
|
||||||
/// ------------------------
|
|
||||||
// CD MUSIC I/O
|
|
||||||
/// ------------------------
|
|
||||||
|
|
||||||
/** \brief cd music interface
|
|
||||||
*/
|
|
||||||
extern UINT8 cdaudio_started;
|
|
||||||
|
|
||||||
/** \brief Startup the CD system
|
|
||||||
*/
|
|
||||||
void I_InitCD(void);
|
|
||||||
|
|
||||||
/** \brief Stop the CD playback
|
|
||||||
*/
|
|
||||||
void I_StopCD(void);
|
|
||||||
|
|
||||||
/** \brief Pause the CD playback
|
|
||||||
*/
|
|
||||||
void I_PauseCD(void);
|
|
||||||
|
|
||||||
/** \brief Resume the CD playback
|
|
||||||
*/
|
|
||||||
void I_ResumeCD(void);
|
|
||||||
|
|
||||||
/** \brief Shutdown the CD system
|
|
||||||
*/
|
|
||||||
void I_ShutdownCD(void);
|
|
||||||
|
|
||||||
/** \brief Update the CD info
|
|
||||||
*/
|
|
||||||
void I_UpdateCD(void);
|
|
||||||
|
|
||||||
/** \brief The I_PlayCD function
|
|
||||||
|
|
||||||
\param track CD track number
|
|
||||||
\param looping if true, loop the track
|
|
||||||
|
|
||||||
\return void
|
|
||||||
*/
|
|
||||||
void I_PlayCD(UINT8 track, UINT8 looping);
|
|
||||||
|
|
||||||
/** \brief The I_SetVolumeCD function
|
|
||||||
|
|
||||||
\param volume volume level to set at
|
|
||||||
|
|
||||||
\return return 0 on failure
|
|
||||||
*/
|
|
||||||
boolean I_SetVolumeCD(INT32 volume);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -4168,9 +4168,6 @@ boolean P_LoadLevel(boolean fromnetsave)
|
||||||
// clear special respawning que
|
// clear special respawning que
|
||||||
iquehead = iquetail = 0;
|
iquehead = iquetail = 0;
|
||||||
|
|
||||||
// Fab : 19-07-98 : start cd music for this level (note: can be remapped)
|
|
||||||
I_PlayCD((UINT8)(gamemap), false);
|
|
||||||
|
|
||||||
P_MapEnd();
|
P_MapEnd();
|
||||||
|
|
||||||
// Remove the loading shit from the screen
|
// Remove the loading shit from the screen
|
||||||
|
|
|
||||||
|
|
@ -2433,13 +2433,6 @@ void S_PauseAudio(void)
|
||||||
if (I_SongPlaying() && !I_SongPaused())
|
if (I_SongPlaying() && !I_SongPaused())
|
||||||
I_PauseSong();
|
I_PauseSong();
|
||||||
|
|
||||||
// pause cd music
|
|
||||||
#if (defined (__unix__) && !defined (MSDOS)) || defined (UNIXCOMMON) || defined (HAVE_SDL)
|
|
||||||
I_PauseCD();
|
|
||||||
#else
|
|
||||||
I_StopCD();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
S_SetStackAdjustmentStart();
|
S_SetStackAdjustmentStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2451,9 +2444,6 @@ void S_ResumeAudio(void)
|
||||||
if (I_SongPlaying() && I_SongPaused())
|
if (I_SongPlaying() && I_SongPaused())
|
||||||
I_ResumeSong();
|
I_ResumeSong();
|
||||||
|
|
||||||
// resume cd music
|
|
||||||
I_ResumeCD();
|
|
||||||
|
|
||||||
S_AdjustMusicStackTics();
|
S_AdjustMusicStackTics();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,8 +69,6 @@ extern consvar_t musserver_cmd, musserver_arg;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern CV_PossibleValue_t soundvolume_cons_t[];
|
extern CV_PossibleValue_t soundvolume_cons_t[];
|
||||||
//part of i_cdmus.c
|
|
||||||
extern consvar_t cd_volume, cdUpdate;
|
|
||||||
|
|
||||||
#if defined (macintosh) && !defined (HAVE_SDL)
|
#if defined (macintosh) && !defined (HAVE_SDL)
|
||||||
typedef enum
|
typedef enum
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@ set(SRB2_SDL2_SOURCES
|
||||||
dosstr.c
|
dosstr.c
|
||||||
endtxt.c
|
endtxt.c
|
||||||
hwsym_sdl.c
|
hwsym_sdl.c
|
||||||
i_cdmus.c
|
|
||||||
i_main.c
|
i_main.c
|
||||||
i_net.c
|
i_net.c
|
||||||
i_system.c
|
i_system.c
|
||||||
|
|
|
||||||
|
|
@ -1,37 +0,0 @@
|
||||||
#include "../command.h"
|
|
||||||
#include "../s_sound.h"
|
|
||||||
#include "../i_sound.h"
|
|
||||||
|
|
||||||
//
|
|
||||||
// CD MUSIC I/O
|
|
||||||
//
|
|
||||||
|
|
||||||
UINT8 cdaudio_started = 0;
|
|
||||||
|
|
||||||
consvar_t cd_volume = {"cd_volume","31",CV_SAVE,soundvolume_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL};
|
|
||||||
consvar_t cdUpdate = {"cd_update","1",CV_SAVE, NULL, NULL, 0, NULL, NULL, 0, 0, NULL};
|
|
||||||
|
|
||||||
|
|
||||||
void I_InitCD(void){}
|
|
||||||
|
|
||||||
void I_StopCD(void){}
|
|
||||||
|
|
||||||
void I_PauseCD(void){}
|
|
||||||
|
|
||||||
void I_ResumeCD(void){}
|
|
||||||
|
|
||||||
void I_ShutdownCD(void){}
|
|
||||||
|
|
||||||
void I_UpdateCD(void){}
|
|
||||||
|
|
||||||
void I_PlayCD(UINT8 track, UINT8 looping)
|
|
||||||
{
|
|
||||||
(void)track;
|
|
||||||
(void)looping;
|
|
||||||
}
|
|
||||||
|
|
||||||
FUNCMATH boolean I_SetVolumeCD(int volume)
|
|
||||||
{
|
|
||||||
(void)volume;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
@ -2328,7 +2328,6 @@ void I_Quit(void)
|
||||||
M_FreePlayerSetupColors();
|
M_FreePlayerSetupColors();
|
||||||
I_ShutdownMusic();
|
I_ShutdownMusic();
|
||||||
I_ShutdownSound();
|
I_ShutdownSound();
|
||||||
I_ShutdownCD();
|
|
||||||
// use this for 1.28 19990220 by Kin
|
// use this for 1.28 19990220 by Kin
|
||||||
I_ShutdownGraphics();
|
I_ShutdownGraphics();
|
||||||
I_ShutdownInput();
|
I_ShutdownInput();
|
||||||
|
|
@ -2389,16 +2388,14 @@ void I_Error(const char *error, ...)
|
||||||
if (errorcount == 3)
|
if (errorcount == 3)
|
||||||
I_ShutdownSound();
|
I_ShutdownSound();
|
||||||
if (errorcount == 4)
|
if (errorcount == 4)
|
||||||
I_ShutdownCD();
|
|
||||||
if (errorcount == 5)
|
|
||||||
I_ShutdownGraphics();
|
I_ShutdownGraphics();
|
||||||
if (errorcount == 6)
|
if (errorcount == 5)
|
||||||
I_ShutdownInput();
|
I_ShutdownInput();
|
||||||
if (errorcount == 7)
|
if (errorcount == 6)
|
||||||
I_ShutdownSystem();
|
I_ShutdownSystem();
|
||||||
if (errorcount == 8)
|
if (errorcount == 7)
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
if (errorcount == 9)
|
if (errorcount == 8)
|
||||||
{
|
{
|
||||||
M_SaveConfig(NULL);
|
M_SaveConfig(NULL);
|
||||||
G_SaveGameData();
|
G_SaveGameData();
|
||||||
|
|
@ -2446,7 +2443,6 @@ void I_Error(const char *error, ...)
|
||||||
M_FreePlayerSetupColors();
|
M_FreePlayerSetupColors();
|
||||||
I_ShutdownMusic();
|
I_ShutdownMusic();
|
||||||
I_ShutdownSound();
|
I_ShutdownSound();
|
||||||
I_ShutdownCD();
|
|
||||||
// use this for 1.28 19990220 by Kin
|
// use this for 1.28 19990220 by Kin
|
||||||
I_ShutdownGraphics();
|
I_ShutdownGraphics();
|
||||||
I_ShutdownInput();
|
I_ShutdownInput();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue