Jump to content

FYI, Firefox 40 might have Sound issues


Recommended Posts

I spent the better part of yesterday afternoon trying to debug sounds being part of POV.MotionEvents.  At first, it was my problem, but by the end of the day, I was sure the sound was ready to play ( and would play, if autoplay was requested), but play() had no result.


Today, I got a system update notification for Firefox, and loaded it.  I just reloaded the scene, not changed today & it plays.  With Ubuntu, I cannot go back to Firefox 40, that is a very small window of time for this change in behavior.

Link to comment
Share on other sites

Curiously, I've never had been able to get any of the davrous playground examples to work. But last week while looking at a playground example, I opened the "debug/editor" panels and noticed a setting for headphones - so I thought maybe that was the problem (as I use wireless headphones. So I went back to the davrous examples to retry them.


Anyway, to cut a long story short, They played fine - without having to use that headphone setting.


Traditionally, I have always used howler.js, as it relatively simple to use and has a feature that I like ("sprites").


cheers, gryff :)

Link to comment
Share on other sites

I am using BABYLON.Sound.  In process of making speech animation more practical, using meshes from Make Human.  Have pushed the actual starting of the SOUND down to the POV extension, which is what MORPH is built on.  Pulled Voice-sync out of MORPH, into its own Module, MakeHuman.


The tester looks exceptionally bad right now.  Tried to remove most of the body as it is not needed for this scene, not working out yet.  Looks so bad, just going to do a nude, till later.



The scene with sound is not done.  The MP4 encoder, H264 codec, is missing.  Got it from JCodec, and have translated most of it from Java to Typescript.  Not planning on publishing this part, but just optional.  Do not have Chrome on system.  Anyone have problem hearing this:  https://googledrive.com/host/0B6-s6ZjHyEwUV1kwMWhYYU1NY00/

Link to comment
Share on other sites

For compatibility with all browsers using mp3 and ogg is good.
Format compatible for sound.

  • Internet explorer: .mp3 and .wav
  • Google Chrome: .mp3 and  .ogg
  • Firefox: .ogg only
  • Safari : mp3 and   wav
  • Opera: wav and  ogg

If the browser can read ogg, ogg I play, otherwise if the browser plays the mp3, I play mp3

var audio = new Audio(), sound = null;if(audio.canPlayType("audio/ogg") != "") { // ogg	sound= "sounds.ogg";}else if(audio.canPlayType("audio/mpeg") != "") { // mp3	sound= "sounds.mp3";}var music = new BABYLON.Sound("Name", sound, scene, null, { loop: true, autoplay: true });
Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...