From 2406597356034a862c4b802da27285df44fafb70 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Sun, 10 Jun 2018 10:28:02 +0200 Subject: [PATCH] Mark everythings that's local to ogg.c as static. --- src/client/sound/header/vorbis.h | 9 +-------- src/client/sound/ogg.c | 8 ++++---- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/client/sound/header/vorbis.h b/src/client/sound/header/vorbis.h index edb4f4f9..9d6f504c 100644 --- a/src/client/sound/header/vorbis.h +++ b/src/client/sound/header/vorbis.h @@ -41,17 +41,10 @@ typedef enum void OGG_Init(void); void OGG_PlayTrack(int track); -void OGG_Shutdown(void); void OGG_Read(void); +void OGG_Shutdown(void); void OGG_Stop(void); void OGG_Stream(void); -/* Console commands. */ -void OGG_PauseCmd(void); -void OGG_PlayCmd(void); -void OGG_PlayTrack(int track); -void OGG_ResumeCmd(void); -void OGG_StatusCmd(void); - #endif #endif diff --git a/src/client/sound/ogg.c b/src/client/sound/ogg.c index 793f8bad..db1002b2 100644 --- a/src/client/sound/ogg.c +++ b/src/client/sound/ogg.c @@ -56,7 +56,7 @@ enum { MAX_NUM_OGGTRACKS = 32 }; static char* oggTracks[MAX_NUM_OGGTRACKS]; static int oggMaxFileIndex; -enum GameType { +static enum GameType { other, // incl. baseq2 xatrix, rogue @@ -210,7 +210,7 @@ OGG_InitTrackList(void) * Play a portion of the currently opened file. */ void -OGG_Read(void) +static OGG_Read(void) { long read_bytes = ov_read(&ovFile, ovBuf, sizeof(ovBuf), bigendien, OGG_SAMPLEWIDTH, 1, &ovSection); @@ -380,7 +380,7 @@ OGG_PlayTrack(int trackNo) /* * List Ogg Vorbis files and print current playback state. */ -void +static void OGG_Info(void) { Com_Printf("Tracks:\n"); @@ -454,7 +454,7 @@ OGG_Stop(void) /* * Pause or resume playback. */ -void +static void OGG_TogglePlayback(void) { if (ogg_status == PLAY)