/* ================== S_StartLocalSound ================== */ void S_Base_StartLocalSound( sfxHandle_t sfxHandle, int channelNum ) { if ( !s_soundStarted || s_soundMuted ) { return; } if ( sfxHandle < 0 || sfxHandle >= s_numSfx ) { Com_Printf( S_COLOR_YELLOW "S_StartLocalSound: handle %i out of range\n", sfxHandle ); return; } S_Base_StartSoundEx( NULL, listener_number, channelNum, sfxHandle, qtrue ); }
/* ==================== S_StartSound if origin is NULL, the sound will be dynamically sourced from the entity ==================== */ void S_Base_StartSound( vec3_t origin, int entityNum, int entchannel, sfxHandle_t sfxHandle ) { S_Base_StartSoundEx( origin, entityNum, entchannel, sfxHandle, qfalse ); }
void S_Base_StartSound(vec3_t origin, int entnum, int entchannel, sfxHandle_t sfxHandle, int volume) { S_Base_StartSoundEx(origin, entnum, entchannel, sfxHandle, 0, volume); }