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

Method Play2dSound

sndlib/hlsoundlib.cpp:1160–1162  ·  view source on GitHub ↗

General purpose 2d sound play function

Source from the content-addressed store, hash-verified

1158}
1159// General purpose 2d sound play function
1160int hlsSystem::Play2dSound(int sound_index, float volume, float pan, uint16_t frequency) {
1161 return hlsSystem::Play2dSound(sound_index, SND_PRIORITY_NORMAL, volume, pan, frequency);
1162}
1163int hlsSystem::Play2dSound(int sound_index, int priority, float volume, float pan, uint16_t frequency) {
1164 int i = 0;
1165 int sound_uid;

Callers 15

OnPlaysoundMethod · 0.80
OnPlaySoundButtonMethod · 0.80
OpenCockpitFunction · 0.80
CloseCockpitFunction · 0.80
StartTerrainSoundFunction · 0.80
msafe_CallFunctionFunction · 0.80
ProcessASPFunction · 0.80
MultiDoMessageFromServerFunction · 0.80
MultiDoChangeRankFunction · 0.80
D3W_Play2dSoundFunction · 0.80
PostLevelResultsFunction · 0.80

Calls 3

PlaySound2dMethod · 0.80
IsSoundPlayingMethod · 0.45

Tested by

no test coverage detected