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

Method Play3dSound

sndlib/hlsoundlib.cpp:1019–1021  ·  view source on GitHub ↗

Functions that play a 3d sound -- includes the 2d emulation of 3d sound

Source from the content-addressed store, hash-verified

1017}
1018// Functions that play a 3d sound -- includes the 2d emulation of 3d sound
1019int hlsSystem::Play3dSound(int sound_index, pos_state *cur_pos, float volume, int flags, float offset) {
1020 return Play3dSound(sound_index, SND_PRIORITY_NORMAL, cur_pos, volume, flags, offset);
1021}
1022// Functions that play a 3d sound -- includes the 2d emulation of 3d sound
1023int hlsSystem::Play3dSound(int sound_index, object *cur_obj, float volume, int flags, float offset) {
1024 return Play3dSound(sound_index, SND_PRIORITY_NORMAL, cur_obj, volume, flags, offset);

Callers 15

collide_weapon_and_wallFunction · 0.80
collide_player_and_wallFunction · 0.80
collide_generic_and_wallFunction · 0.80
bump_two_objectsFunction · 0.80
collide_object_with_wallFunction · 0.80
StartObjectSoundsFunction · 0.80
StartTextureSoundsFunction · 0.80

Calls 2

IsSoundPlayingMethod · 0.45

Tested by

no test coverage detected