MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / PlayerStopSounds

Function PlayerStopSounds

Descent3/Player.cpp:1379–1389  ·  view source on GitHub ↗

Stops all sounds for a player

Source from the content-addressed store, hash-verified

1377
1378// Stops all sounds for a player
1379void PlayerStopSounds(int slot) {
1380 if (Players[slot].afterburner_sound_handle != -1) {
1381 Sound_system.StopSoundImmediate(Players[slot].afterburner_sound_handle);
1382 Players[slot].afterburner_sound_handle = -1;
1383 }
1384
1385 if (Players[slot].thruster_sound_handle != -1) {
1386 Sound_system.StopSoundImmediate(Players[slot].thruster_sound_handle);
1387 Players[slot].thruster_sound_handle = -1;
1388 }
1389}
1390
1391// Called when a player is entering the game for the first time
1392void InitPlayerNewGame(int slot) {

Callers 9

EndLevelFunction · 0.85
MultiDoPlayerFunction · 0.85
MultiDoPlayerEnteredGameFunction · 0.85
MultiMakePlayerGhostFunction · 0.85
MultiDoVisiblePlayersFunction · 0.85
EndPlayerDeathFunction · 0.85
PlayerShipExplodeFunction · 0.85
PlayerSwitchToObserverFunction · 0.85
PlayerStopObservingFunction · 0.85

Calls 1

StopSoundImmediateMethod · 0.80

Tested by

no test coverage detected