void S_UseBuffer( sfx_t *sfx ) { if( sfx->filename[0] == '\0' ) return; if( !sfx->inMemory ) S_LoadBuffer( sfx ); sfx->used = trap_Milliseconds(); }
/* * S_HandleLoadSfxCmd */ static unsigned S_HandleLoadSfxCmd( const sndCmdLoadSfx_t *cmd ) { //Com_Printf("S_HandleLoadSfxCmd\n"); S_LoadBuffer( S_GetBufferById( cmd->sfx ) ); return sizeof( *cmd ); }