[r145-146] node-webkit audio volume bug

0 favourites
  • 11 posts
From the Asset Store
Node Downloader is a plugin for download file for Construct 3 and construct 2 game engine
  • Link to .capx file (required!):

    dl.dropboxusercontent.com/u/2383513/linkedOUT/MusicGainTest3.capx

    (example by blackhornet )

    Steps to reproduce:

    1. Make a function that slowly lowers the music, and makes another music play after it's done.

    Observed result:

    Should work, as it works in Chrome and IE. Also works perfectly on r144.1.

    Expected result:

    First song volume goes down and it stops playing as intended, but the next song never plays.

    Browsers affected:

    Chrome: no

    Internet Explorer: no

    Node-Webkit: Yes

    Operating system & service pack:

    Win8 64bits

    Construct 2 version:

    Tested on both r145 and r146

  • Huh. I thought this would be a C2 bug, since it broke after the update, but apparently it's a problem with this event line:

    <img src="http://i.imgur.com/5OCQkVV.png" border="0" />

    The logic is that, if MusicB volume is 0db, it resets the fade variables. Apparently C2 thinks that MusicB volume IS 0db, even though I just told it to start playing the song at -30db.

    I'm unsure if it's a bug in C2 or the code, now...

    I did fix it by doing this:

    <img src="http://i.imgur.com/MOQEUQw.png" border="0" />

  • andreyin

    There is a bug in it somewhere. My in game music for Insanity's Blade is now in mono and continues playing after you restart a layout and overlaps etc etc. I'm testing only in Node WebKit. My only line of code is the Audio tag with Play "songname" looping from Music at 1dB (tag levelX).

    It also doesn't play right away. Had no problems with it until this build.

    Is this what's happening to you as well?

  • damainman

    I have yet to test if it's mono, but yeah, there's a small delay when beggining to play a song (more noticiable at the beggining of the game).

    Something funny I noticed, apparently you can't have anything louder than 0db now. In the capx I posted, if you try to make it louder than 0db, nothing happens.

  • Yes there is a bug.

    144,2 is perfect.

    146 the music has delay when start layout. When the layout is restarted, play 2 musics same times and 3 and 4...

    See exemplo that I did. Same project exported with different versions. Go outside layout.

    4shared.com/rar/ix1AqLfz/win32_144_2.html

    4shared.com/rar/iLoLth45/win32_146.html

  • When start layout (exported to node-webkit), the music play after 1 second. In the Run layout have no this problem.

    Heeeeeeelppppppp!!

    Rodrigo

    Brasil

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • OK so this is a bug. I can stop checking my code line by line to understand why my music is played twice or cut. ^^

  • I think Node-Webkit Audio is broken in many ways."seeking" doesn't seem to be working either.

  • Something funny I noticed, apparently you can't have anything louder than 0db now. In the capx I posted, if you try to make it louder than 0db, nothing happens.hug@andreyin I've noticed quite a few issues with the audio plugin, this being one. While it makes sense for the master volume (in the digital domain 0dB is the maximum loudness possible), it renders gaining effects useless. You can't even amplify with filter effects, whose purpose is to do exactly that <img src="smileys/smiley24.gif" border="0" align="middle" />

    Also seeking sometimes works and sometimes not. This is true for previewing as well as exporting to web.

    One issue I had was the doubling of a sound that I could only reproduce in one specific capx only.

    Yes, there are quite a few issues with audio.

  • I've reverted some node-webkit specific changes we made to the Audio object recently. Now it works the same as it does in Chrome. Hopefully that means everything's sorted for the next build.

  • Thanks Ashley!!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)