0 Favourites

Javascript error, Something to do with the audio

  • Link to .capx

    Steps to reproduce:

    1. Run Layout

    2. Walk left using left arrow

    Observed result:

    Game crashes and this error appears:

    "Javascript error!

    TypeError: this.gainNode is null

    localhost/Audio_plugin.js, line 1432 (col undefined)

    This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer!"

    I have no 3rd party plug-ins.

    Expected result:

    The music should change/sound effects should play.

    Browsers affected:

    Chrome: Yes, but none of the sound effects play.

    Firefox: Yes, it crashes when new audio should play.

    Internet Explorer: Yes, No music plays.

    Operating system & service pack:

    Windows 7: Service pack 1

    Construct 2 version:

    Beta Release r155. The previous version had none of these issues.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • It doesn't work in Chrome because you're playing that music as a positioned sound, and the rest of the project appears to use ordinary playback rather than positioned sounds, so that looks like a mistake. (You need to set the listener object etc. before positioned sounds will play correctly.) If you switch it to an ordinary play action it works fine.

    The error when running with Firefox was a bug; should be fixed in the next build, but it still won't play at a position due to a workaround we have to use to get around a Firefox bug.

    IE doesn't play because you don't have .m4a versions of your music tracks.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
99 10,139
karshinkoff's avatar
karshinkoff
Unread hot topic
72 22,298
Ashley's avatar
Ashley Construct Team Founder
Unread hot topic
81 11,416
NathanClearyMusi's avatar
NathanClearyMusi