Dad72 Posted December 11, 2016 Share Posted December 11, 2016 Hello, If use this : var myAnalyser = new BABYLON.Analyser(scene); BABYLON.Engine.audioEngine.connectToAnalyser(myAnalyser); myAnalyser.drawDebugCanvas(); The frame is not positioned in the canvas : http://www.babylonjs-playground.com/#PTV7W#8 And this causes a bug : ( connectToAnalyser is not a function ) var myAnalyser = new BABYLON.Analyser(scene); music.connectToAnalyser(myAnalyser); myAnalyser.drawDebugCanvas(); http://www.babylonjs-playground.com/#PTV7W#9 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 11, 2016 Share Posted December 11, 2016 Ping our audio master: @davrous Quote Link to comment Share on other sites More sharing options...
Dad72 Posted December 14, 2016 Author Share Posted December 14, 2016 Any news for these bugs ? Quote Link to comment Share on other sites More sharing options...
Dad72 Posted December 20, 2016 Author Share Posted December 20, 2016 Anyone else has these bugs ? For me it is unusable as is. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 20, 2016 Share Posted December 20, 2016 Ping @davrous to try to summon him Quote Link to comment Share on other sites More sharing options...
davrous Posted December 21, 2016 Share Posted December 21, 2016 I'm on vacation next week. Will work on it. However this is not a bug. This is exactly how I've imagined using it even if I have to admit this is not useful in a certain number of cases Quote Link to comment Share on other sites More sharing options...
Dad72 Posted December 21, 2016 Author Share Posted December 21, 2016 @davrous Sorry not to understand, but the first link, the analizer is position on the code editor at the top left, before I saw it position on the canvas right down. Which lets me think of a bug. On the second link, I have an error that says: connectToAnalyser is not a function Why are not these bugs? Is not it possible to reposition the analizer and avoid this error of connectToAnalizer is not a function ? Quote Link to comment Share on other sites More sharing options...
davrous Posted December 22, 2016 Share Posted December 22, 2016 @Dad72 I've explained it in the documentation: http://doc.babylonjs.com/overviews/Playing_sounds_and_music I'm displaying the debug canvas in absolute position. It's a debug stuff, so I haven't spent much time handling the display of it. By default, it's in position: absolute, top left. You can change with the properties provided in the documentation. The main idea of the analyser was to expose it to build experiences such as: http://babylonjs.com/Demos/Dancing CSG/ or http://babylonjs.com/Demos/AudioAnalyser/ For your second link, it's not a bug as there is no connectToAnalyser function on the BABYLON.Sound object. The function is available either on the global audio engine or on a specific sound track. Quote Link to comment Share on other sites More sharing options...
Dad72 Posted December 22, 2016 Author Share Posted December 22, 2016 Ok, Thank you for the explanation, I understand better. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted December 26, 2016 Share Posted December 26, 2016 Rember you can use the browsers audio API as well. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.