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

Function aSoundPlaySteaming

scripts/DallasFuncs.cpp:2788–2798  ·  view source on GitHub ↗

$$ACTION Sound && Music Play streaming sound [z:Sound] for all players, volume = [p:Volume=1.0:0.0|1.0] aSoundPlaySteaming Play Steaming Sound Plays a streaming sound sample Parameters: Sound: the sound to play Volume: how loud to play the sound $$END */

Source from the content-addressed store, hash-verified

2786$$END
2787*/
2788void aSoundPlaySteaming(const char *soundname, float volume) {
2789 msafe_struct mstruct;
2790
2791 mstruct.state = 0; // all players
2792
2793 strncpy(mstruct.name, soundname, sizeof(mstruct.name) - 1);
2794 mstruct.name[sizeof(mstruct.name) - 1] = 0;
2795 mstruct.volume = volume;
2796
2797 MSafe_CallFunction(MSAFE_SOUND_STREAMING, &mstruct);
2798}
2799
2800/*
2801$$ACTION

Callers 15

CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected