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

Function S_StartLocalLoopingSound

code/client/snd_dma.cpp:1660–1673  ·  view source on GitHub ↗

================== S_StartLocalLoopingSound ================== */

Source from the content-addressed store, hash-verified

1658==================
1659*/
1660void S_StartLocalLoopingSound( sfxHandle_t sfxHandle) {
1661 vec3_t nullVec = {0,0,0};
1662
1663 if ( !s_soundStarted || s_soundMuted ) {
1664 return;
1665 }
1666
1667 if ( sfxHandle < 0 || sfxHandle >= s_numSfx ) {
1668 Com_Error( ERR_DROP, "S_StartLocalLoopingSound: handle %i out of range", sfxHandle );
1669 }
1670
1671 S_AddLoopingSound( listener_number, nullVec, nullVec, sfxHandle );
1672
1673}
1674
1675// returns length in milliseconds of supplied sound effect... (else 0 for bad handle now)
1676//

Callers

nothing calls this directly

Calls 2

S_AddLoopingSoundFunction · 0.70
Com_ErrorFunction · 0.50

Tested by

no test coverage detected