Some sound source cleanup, no functional changes.

- make a couple variables static in sounds_mapster32.c
- KHz --> Hz in initialization text

git-svn-id: https://svn.eduke32.com/eduke32@2439 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-03-10 21:21:42 +00:00
parent 58a8e36374
commit 4659b691e6
4 changed files with 7 additions and 10 deletions

View file

@ -2315,7 +2315,6 @@ ENDFOR1:
}
#define SOUND_NUMDISPLINES IHELP_NUMDISPLINES
//extern char SoundToggle;
static int32_t compare_sounds_s(int16_t k1, int16_t k2)
{
@ -2463,8 +2462,6 @@ static void SoundDisplay(void)
static int32_t cursnd=0, curofs=0;
char disptext[SOUND_NUMDISPLINES][80];
// SoundToggle = 1;
while (keystatus[KEYSC_ESC]==0 && keystatus[KEYSC_Q]==0 && keystatus[KEYSC_F2]==0
&& keystatus[buildkeys[BK_MODE2D_3D]]==0) // quickjump to 3d mode
{
@ -2645,7 +2642,6 @@ static void SoundDisplay(void)
FX_StopAllSounds();
S_ClearSoundLocks();
// SoundToggle = 0;
keystatus[KEYSC_ESC] = keystatus[KEYSC_Q] = keystatus[KEYSC_F2] = 0;
}
@ -2668,9 +2664,7 @@ static int32_t dist(spritetype *s1,spritetype *s2)
}
}
extern int32_t NumVoices;
extern int32_t g_numEnvSoundsPlaying;
int32_t AmbienceToggle = 1; //SoundToggle;
int32_t AmbienceToggle = 1;
int32_t ParentalLock = 0;
#undef T1
#define T1 (s->filler)

View file

@ -65,7 +65,7 @@ void S_SoundStartup(void)
return;
}
initprintf("%d voices, %d channels, %d-bit %dKHz\n", ud.config.NumVoices, ud.config.NumChannels,
initprintf("%d voices, %d channels, %d-bit %d Hz\n", ud.config.NumVoices, ud.config.NumChannels,
ud.config.NumBits, ud.config.MixRate);
for (i=g_maxSoundPos; i >= 0 ; i--)

View file

@ -48,11 +48,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
static char SM32_havesound = 0;
char SoundToggle = 1;
static char SoundToggle = 1;
int32_t NumVoices = 32;
int32_t MixRate = 44100;
int32_t backflag,g_numEnvSoundsPlaying;
int32_t g_numEnvSoundsPlaying;
void MUSIC_Update(void) {} // needed when linking

View file

@ -46,6 +46,9 @@ typedef struct {
#define MAXSOUNDS 4096
extern sound_t g_sounds[MAXSOUNDS];
extern int32_t g_numEnvSoundsPlaying;
extern int32_t NumVoices;
int32_t S_SoundStartup(void);
void S_SoundShutdown(void);
int32_t S_PlaySound3D(int32_t, int32_t, const vec3_t*);