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

Function StreamVolume

stream_audio/streamaudio.cpp:941–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

939static float Stream_volume = 1.0f;
940static float Stream_master_volume = 1.0f;
941void StreamVolume(float master_volume) {
942 Stream_master_volume = master_volume;
943 User_audio_stream.SetVolume(Stream_volume * master_volume);
944}
945// these functions are the 'simplified' stream interface from Jeff (most of this code is from Jeff)
946int StreamPlay(const char *filename, float volume, int flags) {
947 int retval = -1;

Callers 1

SetMasterVolumeMethod · 0.85

Calls 1

SetVolumeMethod · 0.45

Tested by

no test coverage detected