How do I debug this error?

Get help using Construct 2

Post » Fri Mar 28, 2014 11:30 am

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;





Code: Select all
         // 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);
               }
            }
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Sun Mar 30, 2014 1:47 am

Are you making the sound too high? What's the events you're using with audio?
B
83
S
22
G
15
Posts: 1,039
Reputation: 15,219


Return to How do I....?

Who is online

Users browsing this forum: RetrocadeMedia, sebrosen, Yahoo [Bot] and 31 guests