Setting sound volume question

Forum Home Forum Home > Construct 2 General > Construct 2 general
 Post Reply Post Reply
Author
3,680 Rep
Post Options Post Options   Quote Zeus Quote  Post ReplyReply Direct Link To This Post Topic: Setting sound volume question
    Posted: 13 May 2012 at 5:54pm
Same, OGG.
Back to Top
5,655 Rep
Post Options Post Options   Quote VampyricalCurse Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 2012 at 5:49pm
What's the format of the audio? I use OGG and has never given me a problem...
Back to Top
3,680 Rep
Post Options Post Options   Quote Zeus Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 2012 at 5:44pm
Thanks for the replies. Strangely it works fine in Firefox but not Chrome (latest version). I have tried changing the order of events and setting -50db as suggested but that had no effect.

No big deal just wondered what may be causing this.

Back to Top
5,655 Rep
Post Options Post Options   Quote VampyricalCurse Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 2012 at 5:27pm
Sometimes the order of events matters. It has happened to me several times. Try to place the Volume event first instead and then the Play event. Also, maybe the browser has crappy support for audio, which if I remember correctly, is the case with HMTL5 audio for some browsers. Putting the actions in the same order as in yer example works for me on Chrome. You can also try to make the music lower, put it at -50db to make sure if it works or not.
Back to Top

Scirra Developer
78,331 Rep
Post Options Post Options   Quote Ashley Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 2012 at 5:20pm
Which browser are you using? Have you tried other browsers?

Some browsers have dubious audio support, so it might be better with another browser.
Back to Top
3,680 Rep
Post Options Post Options   Quote Zeus Quote  Post ReplyReply Direct Link To This Post Posted: 13 May 2012 at 5:10pm
Hello, I have loaded a short music file from the sound folder (that I do not want to stream thus why it is in the sound folder) that I wish to play instantly upon the start of layout which I have set. Straight after this I have an action to set the volume of my sound to -10db. This doesn`t seem to work. If I move the action set volume action into another event it does work however.

Can anyone suggest what is wrong? Here is what I am doing.


System - OnStartOfLayout > Audio - Play "GameMusic" Looping (tag "Music")
                           Audio - Set "Music" Volume -10db


Edited by Zeus - 13 May 2012 at 5:14pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down