ThreeAudio.js icon indicating copy to clipboard operation
ThreeAudio.js copied to clipboard

issue in ThreeAudio-tquery.js

Open kalwalt opened this issue 10 years ago • 4 comments

Running your example i get the error below in the Chrome Console, and other 11 warnings. this happens running your test.html with pyhton in a local server and in your http server http://acko.net/files/three-audio/. I'm not very expert in javascript, so i don't know how to solve it or what i did wrong. Anyone has an idea? This project seems very interesting and I would learn with it. Thank's for you support in advance.

Uncaught TypeError: undefined is not a functionThreeAudio-tquery.js:808 ThreeAudio.Source.initElementThreeAudio-tquery.js:775 ThreeAudio.SourceThreeAudio-tquery.js:2025 (anonymous function)ThreeAudio-tquery.js:2017 (anonymous function)test.html:34 (anonymous function)ThreeBox.js:578 (anonymous function)ThreeBox.js:71 stateChangeThreeBox.js:71 bindFunction

kalwalt avatar Mar 10 '15 10:03 kalwalt

Uncaught TypeError: b.createDelayNode is not a function
  (anonymous function)  @ ThreeAudio-tquery.min.js:6
  b.each.b.forEach  @ underscore.js:11
  ThreeAudio.Source.init  @ ThreeAudio-tquery.min.js:5
  ThreeAudio.Source @ ThreeAudio-tquery.min.js:4
  (anonymous function)  @ ThreeAudio-tquery.min.js:16
  (anonymous function)  @ ThreeAudio-tquery.min.js:15
  (anonymous function)  @ (index):28
  (anonymous function)  @ ThreeBox.min.js:16
  stateChange @ ThreeBox.min.js:1
  (anonymous function)  @ ThreeBox.min.js:1

fritx avatar May 21 '16 05:05 fritx

replace createDelayNode by createDelay and createGainNode by createGain in all files

add in test/test.html in the DomReady.ready function in the beginning

window.AudioContext = window.AudioContext||window.webkitAudioContext;
window.webkitAudioContext = window.AudioContext||window.webkitAudioContext;

Work after that ;)

stephanedemotte avatar Jun 23 '17 13:06 stephanedemotte

Yes this works! Please update :)

vin-ni avatar Jun 27 '17 13:06 vin-ni

actually more fixes are needed to make it again run in recent browsers.. see fixed version in attachment ThreeAudio-tquery.min.zip

wothke avatar Mar 12 '19 13:03 wothke