Beispiel #1
0
/*
* SF_StartLocalSound
*/
void SF_StartLocalSound( const char *sound )
{
	sfx_t *sfx;

	sfx = SF_RegisterSound( sound );
	if( !sfx )
	{
		Com_Printf( "S_StartLocalSound: can't cache %s\n", sound );
		return;
	}

	S_IssueStartLocalSoundCmd( s_cmdPipe, sfx->id );
}
Beispiel #2
0
static void SF_Play_f( void )
{
	int i;
	sfx_t *sfx;

	for( i = 1; i < trap_Cmd_Argc(); i++ )
	{
		sfx = SF_RegisterSound( trap_Cmd_Argv( i ) );
		if( !sfx )
		{
			Com_Printf( "Couldn't play: %s\n", trap_Cmd_Argv( i ) );
			continue;
		}
		S_StartGlobalSound( sfx, S_CHANNEL_AUTO, 1.0 );
	}
}