MCPcopy Create free account
hub / github.com/JACoders/OpenJK / S_StartLocalSound

Function S_StartLocalSound

code/client/snd_dma.cpp:1643–1653  ·  view source on GitHub ↗

================== S_StartLocalSound ================== */

Source from the content-addressed store, hash-verified

1641==================
1642*/
1643void S_StartLocalSound( sfxHandle_t sfxHandle, int channelNum ) {
1644 if ( !s_soundStarted || s_soundMuted ) {
1645 return;
1646 }
1647
1648 if ( sfxHandle < 0 || sfxHandle >= s_numSfx ) {
1649 Com_Error( ERR_DROP, "S_StartLocalSound: handle %i out of range", sfxHandle );
1650 }
1651
1652 S_StartSound (NULL, listener_number, (soundChannel_t)channelNum, sfxHandle );
1653}
1654
1655/*
1656==================

Callers 5

RoQ_initFunction · 0.70
CL_UISystemCallsFunction · 0.70
S_Play_fFunction · 0.70
CL_CgameSystemCallsFunction · 0.70
trap_S_StartLocalSoundFunction · 0.50

Calls 2

S_StartSoundFunction · 0.70
Com_ErrorFunction · 0.50

Tested by

no test coverage detected