0 Favourites

How do I debug this error?

  • Javascript error!

    TypeError: Value being assigned to AudioParam.value is not a finite floating-point value.

    http://192.168.5.10:50000/Audio_plugin.js, line 1576 (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!

    this is in line 1576

    this.gainNode["gain"]["value"] = vol * masterVolume;

    			// Stupid mobile browsers workaround: if music, we can't play until
    			// next touch event, so queue it up if workaround in effect
    			if (this.is_music && isMusicWorkaround && !audRuntime.isInUserInputEvent)
    				musicPlayNextTouch.push(this);
    			else
    				this.instanceObject.play();
    				
    			break;
    		case API_WEBAUDIO:
    			this.muted = false;
    			this.mutevol = 1;
    			
    			if (this.buffer.myapi === API_WEBAUDIO)
    			{
    				// buffer sources are one-shot - make a new object second time around
    				if (!this.fresh)
    				{
    					this.instanceObject = context["createBufferSource"]();
    					this.instanceObject["buffer"] = this.buffer.bufferObject;
    					this.instanceObject["connect"](this.gainNode);
    				}
    				
    				this.instanceObject.loop = looping;
                                    this.gainNode["gain"]["value"] = vol * masterVolume;
    				
    				if (seekPos === 0)
    					startSource(this.instanceObject);
    				else
    					startSourceAt(this.instanceObject, seekPos, this.getDuration());
    			}
    			else
    			{
    				if (instobj.playbackRate !== 1.0)
    					instobj.playbackRate = 1.0;
    				
    				if (instobj.loop !== looping)
    					instobj.loop = looping;
    			
    				this.gainNode["gain"]["value"] = vol * masterVolume;
    				
    				if (instobj.currentTime !== seekPos)
    				{
    					// no idea why this sometimes throws
    					try {
    						instobj.currentTime = seekPos;
    					}
    					catch (err)
    					{
    						log("Exception rewinding audio: " + err);
    					}
    				}[/code:2k30e4h2]
  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Are you making the sound too high? What's the events you're using with audio?

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