$$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 */
| 2786 | $$END |
| 2787 | */ |
| 2788 | void 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 |
no outgoing calls
no test coverage detected