Beispiel #1
0
void S_Base_SoundList(void)
{
	int   i;
	sfx_t *sfx;
	int   size, total = 0;
	char  type[4][16];
	char  mem[2][16];

	strcpy(type[0], "16bit");
	strcpy(type[1], "adpcm");
	strcpy(type[2], "daub4");
	strcpy(type[3], "mulaw");
	strcpy(mem[0], "paged out");
	strcpy(mem[1], "resident");

	for (sfx = knownSfx, i = 0 ; i < numSfx ; i++, sfx++)
	{
		size   = sfx->soundLength;
		total += size;
		Com_Printf("%6i[%s] : %s[%s]\n", size, type[sfx->soundCompressionMethod],
		           sfx->soundName, mem[sfx->inMemory]);
	}
	Com_Printf("Total number of sounds: %i\n", numSfx);
	Com_Printf("Total resident: %i\n", total);
	S_DisplayFreeMemory();
}
Beispiel #2
0
void S_SoundList_f( void ) {
	int		i;
	sfx_t	*sfx;
	int		size, total;
	char	type[4][16];
	char	mem[2][16];

#ifndef NO_DMAHD
	if ( dmaHD_Enabled() ) {
		dmaHD_SoundList();
		return;
	}
#endif

	strcpy(type[0], "16bit");
	strcpy(type[1], "adpcm");
	strcpy(type[2], "daub4");
	strcpy(type[3], "mulaw");
	strcpy(mem[0], "paged out");
	strcpy(mem[1], "resident ");
	total = 0;
	for (sfx=s_knownSfx, i=0 ; i<s_numSfx ; i++, sfx++) {
		size = sfx->soundLength;
		total += size;
		Com_Printf("%6i[%s] : %s[%s]\n", size, type[sfx->soundCompressionMethod], sfx->soundName, mem[sfx->inMemory] );
	}
	Com_Printf ("Total resident: %i\n", total);
	S_DisplayFreeMemory();
}
Beispiel #3
0
/*
=================
S_Base_SoundList
=================
*/
static void S_Base_SoundList( void ) {
	int		i;
	const sfx_t *sfx;
	int		size, total;
	const char *s;

	total = 0;
	for (sfx = s_knownSfx, i = 0;  i < s_numSfx;  i++, sfx++) {
		size = sfx->soundLength;
		total += size;

		Com_Printf("%03d %6i", i, size);
		switch (sfx->soundCompressionMethod) {
		case SND_COMPRESSION_16BIT:
			s = "16bit";
			break;
		case SND_COMPRESSION_ADPCM:
			s = "adpcm";
			break;
		case SND_COMPRESSION_DAUB4:
			s = "daub4";
			break;
		case SND_COMPRESSION_MULAW:
			s = "mulaw";
			break;
		default:
			s = "unknown";
			break;
		}
		Com_Printf("[%s] : %s", s, sfx->soundName);

		if (sfx->inMemory) {
			s = "resident";
		} else {
			s = "paged out";
		}
		Com_Printf("[%s]\n", s);
	}

	Com_Printf("Total resident: %i\n", total);
	S_DisplayFreeMemory();
}
Beispiel #4
0
void S_SoundList_f( void )
{
	int   i, size, total;
	sfx_t *sfx;

	static const char type[][ 8 ] = { "16bit", "adpcm", "daub4", "mulaw" };
	static const char mem[][ 16 ] = { N_("paged out"), N_("resident") };

	total = 0;

	for ( sfx = s_knownSfx, i = 0; i < s_numSfx; i++, sfx++ )
	{
		size = sfx->soundLength;
		total += size;
		Com_Printf( "%6i[%s] : %s[%s]\n", size, type[ sfx->soundCompressionMethod ], sfx->soundName, _(mem[ sfx->inMemory ]) );
	}

	Com_Printf(_( "Total resident: %i\n"), total );
	S_DisplayFreeMemory();
}