示例#1
0
void S_UseBuffer( sfx_t *sfx )
{
	if( sfx->filename[0] == '\0' )
		return;

	if( !sfx->inMemory )
		S_LoadBuffer( sfx );

	sfx->used = trap_Milliseconds();
}
示例#2
0
文件: snd_al.c 项目: ewirch/qfusion
/*
* S_HandleLoadSfxCmd
*/
static unsigned S_HandleLoadSfxCmd( const sndCmdLoadSfx_t *cmd )
{
	//Com_Printf("S_HandleLoadSfxCmd\n");
	S_LoadBuffer( S_GetBufferById( cmd->sfx ) );
	return sizeof( *cmd );
}