Whitespace cleanup

This commit is contained in:
Yamagi Burmeister 2013-04-20 15:06:47 +02:00
parent 242a62384c
commit 957e4d4735

View file

@ -37,7 +37,7 @@
than could actually be referenced during gameplay, than could actually be referenced during gameplay,
because we don't want to free anything until we are because we don't want to free anything until we are
sure we won't need it. */ sure we won't need it. */
#define MAX_SFX (MAX_SOUNDS * 2) #define MAX_SFX (MAX_SOUNDS * 2)
#define MAX_PLAYSOUNDS 128 #define MAX_PLAYSOUNDS 128
vec3_t listener_origin; vec3_t listener_origin;
@ -300,7 +300,7 @@ S_RegisterSound(char *name)
return sfx; return sfx;
} }
struct sfx_s * struct sfx_s *
S_RegisterSexedSound(entity_state_t *ent, char *base) S_RegisterSexedSound(entity_state_t *ent, char *base)
{ {
@ -365,7 +365,7 @@ S_RegisterSexedSound(entity_state_t *ent, char *base)
return sfx; return sfx;
} }
/* /*
* Called after registering of * Called after registering of
* sound has ended * sound has ended
@ -494,7 +494,7 @@ S_AllocPlaysound(void)
ps = s_freeplays.next; ps = s_freeplays.next;
if (ps == &s_freeplays) if (ps == &s_freeplays)
{ {
/* no free playsounds, this results /* no free playsounds, this results
in stuttering an cracking */ in stuttering an cracking */
return NULL; return NULL;
@ -640,7 +640,7 @@ S_StartSound(vec3_t origin, int entnum, int entchannel, sfx_t *sfx,
sc = S_LoadSound(sfx); sc = S_LoadSound(sfx);
if (!sc) if (!sc)
{ {
/* couldn't load the sound's data */ /* couldn't load the sound's data */
return; return;
} }
@ -846,7 +846,7 @@ S_RawSamples(int samples, int rate, int width,
void void
S_Update(vec3_t origin, vec3_t forward, vec3_t right, vec3_t up) S_Update(vec3_t origin, vec3_t forward, vec3_t right, vec3_t up)
{ {
if (!sound_started) if (!sound_started)
{ {
return; return;
@ -959,9 +959,9 @@ S_SoundList(void)
Com_Printf("Total resident: %i bytes (%.2f MB) in %d sounds\n", total, Com_Printf("Total resident: %i bytes (%.2f MB) in %d sounds\n", total,
(float)total / 1024 / 1024, numsounds); (float)total / 1024 / 1024, numsounds);
} }
/* ----------------------------------------------------------------- */ /* ----------------------------------------------------------------- */
/* /*
* Prints information about the * Prints information about the
* active sound backend * active sound backend
@ -1056,11 +1056,11 @@ S_Init(void)
num_sfx = 0; num_sfx = 0;
paintedtime = 0; paintedtime = 0;
#ifdef OGG #ifdef OGG
OGG_Init(); OGG_Init();
#endif #endif
Com_Printf("Sound sampling rate: %i\n", sound.speed); Com_Printf("Sound sampling rate: %i\n", sound.speed);
S_StopAllSounds(); S_StopAllSounds();
@ -1083,11 +1083,11 @@ S_Shutdown(void)
} }
S_StopAllSounds(); S_StopAllSounds();
#ifdef OGG #ifdef OGG
OGG_Shutdown(); OGG_Shutdown();
#endif #endif
/* free all sounds */ /* free all sounds */
for (i = 0, sfx = known_sfx; i < num_sfx; i++, sfx++) for (i = 0, sfx = known_sfx; i < num_sfx; i++, sfx++)
{ {
@ -1143,4 +1143,4 @@ S_Shutdown(void)
Cmd_RemoveCommand("ogg_shutdown"); Cmd_RemoveCommand("ogg_shutdown");
#endif #endif
} }