unconed / ThreeAudio.js

ThreeAudio helps you create music visualizations in Three.js or tQuery.
MIT License
531 stars 50 forks source link

issue in ThreeAudio-tquery.js #3

Open kalwalt opened 9 years ago

kalwalt commented 9 years ago

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

fritx commented 8 years ago
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
stephanedemotte commented 7 years ago

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 ;)

vin-ni commented 7 years ago

Yes this works! Please update :)

wothke commented 5 years ago

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