Set default radio volume to 50%

This commit is contained in:
Vortrex
2021-04-23 18:14:50 -05:00
parent 98e2c24608
commit 693caceb46

View File

@@ -216,7 +216,7 @@ function sendServerNewAFKStatus(state) {
// =========================================================================== // ===========================================================================
function playStreamingRadio(url) { function playStreamingRadio(url, loop) {
//gta.forceRadioChannel(-1); //gta.forceRadioChannel(-1);
if(url == "") { if(url == "") {
if(streamingRadio != null) { if(streamingRadio != null) {
@@ -229,7 +229,8 @@ function playStreamingRadio(url) {
streamingRadio.stop(); streamingRadio.stop();
} }
streamingRadio = audio.createSoundFromURL(url); streamingRadio = audio.createSoundFromURL(url, loop);
streamingRadio.volume = 0.5;
streamingRadio.play(); streamingRadio.play();
} }