georgejfrick Posted September 25, 2015 Share Posted September 25, 2015 Hello, I'm finding no difference between these two lines:// Should be 1/10 volume?this.gameSounds.play( "auditorium_applause_big_06", 0, 0.1, false, true);// Should be full volumne?this.gameSounds.play( "auditorium_applause_big_06", 0, 1.0 , false, true);Can volume not be controlled, or is this the wrong input to this parameter? I need to play two sounds at once (well, three); and have the background sound playing quieter. Am I forced to modify the source sound? The above code is using a single sound with markers, initiated this way: this.gameSounds = this.game.add.audio(this.theme.soundKey); this.gameSounds.allowMultiple = true; _.each( this.theme.sounds, function( timing, key ) { this.gameSounds.addMarker(key, timing[0], timing[1], 1, timing[2]); }, this); // this.gameSounds.onMarkerComplete.add(this.onSoundFinished, this); // This event seems broken. this.gameSounds.onStop.add(this.onSoundFinished, this);Hrm, now I'm wondering if I have to control the sound when I add the marker? I'm going to try that and I'll reply to my own post if it works. Link to comment Share on other sites More sharing options...
georgejfrick Posted September 25, 2015 Author Share Posted September 25, 2015 My attempt to control the volume when adding the marker did not make any difference, so I am still looking for both how to control volume, and what exactly that parameter is for... Link to comment Share on other sites More sharing options...
presidenten Posted October 1, 2015 Share Posted October 1, 2015 Try this: this.gameSounds.volume = 0.5; Info here:http://phaser.io/docs/2.4.1/Phaser.Sound.html#volume Link to comment Share on other sites More sharing options...
georgejfrick Posted October 2, 2015 Author Share Posted October 2, 2015 Try this: this.gameSounds.volume = 0.5; Info here:http://phaser.io/docs/2.4.1/Phaser.Sound.html#volume I have tried that. We've had to start mixing down the audio, it also doesn't answer the question of what the parameter is for even if "this.gameSounds.volume" worked. Link to comment Share on other sites More sharing options...
Recommended Posts