コード例 #1
0
ファイル: snd_main.c プロジェクト: cfr/qfusion
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 );
	}
}
コード例 #2
0
ファイル: snd_al.c プロジェクト: ewirch/qfusion
/*
* S_HandleStartGlobalSoundCmd
*/
static unsigned S_HandleStartGlobalSoundCmd( const sndCmdStartGlobalSound_t *cmd )
{
	//Com_Printf("S_HandleStartGlobalSoundCmd\n");
	S_StartGlobalSound( S_GetBufferById( cmd->sfx ), cmd->channel, cmd->fvol );
	return sizeof( *cmd );
}