Jump to content


Photo

why 2 sound formats (Ogg and MP3)?


  • Please log in to reply
4 replies to this topic

#1 wtrbrs

wtrbrs

    GMC Member

  • GMC Member
  • 37 posts

Posted 23 June 2012 - 03:36 PM

I have noticed that in the html5 folder 2 sounds of every gamesound are put: an mp3 version and an OGG version. With rather different sound qualities. Why is this and can you force the game to use one of the either?

(it seems one browser uses the mp3 while others use the ogg)

thanks for making this clear.

Wouter
  • 0

#2 Robert3DG+

Robert3DG+

    VR Games

  • GMC Member
  • 1841 posts
  • Version:GM:Studio

Posted 23 June 2012 - 03:43 PM

(it seems one browser uses the mp3 while others use the ogg)


That's precisely the reason. Some HTML5 compliant devices can also only play one or the other.

edit: auto-correct hysteria

Edited by Robert3DG+, 23 June 2012 - 04:23 PM.

  • 0

#3 wtrbrs

wtrbrs

    GMC Member

  • GMC Member
  • 37 posts

Posted 23 June 2012 - 04:49 PM

clear!

When a browser supports both mp3 and Ogg (e.g. Chrome) is it a setting within GM or within the browser wich soundfile is used?

Thanks for clarifying even more ;-)

Wouter
  • 0

#4 alexandervrs

alexandervrs

    GMC Member

  • GMC Member
  • 417 posts
  • Version:GM:Studio

Posted 23 June 2012 - 05:19 PM

clear!

When a browser supports both mp3 and Ogg (e.g. Chrome) is it a setting within GM or within the browser wich soundfile is used?

Thanks for clarifying even more ;-)

Wouter


The check happens within the browser and not the IDE because you simply don't know which browser every player is going to use.
So your game needs to be shipped with both sound formats and on runtime it is decided which one will be used by the browser.
  • 0

#5 wtrbrs

wtrbrs

    GMC Member

  • GMC Member
  • 37 posts

Posted 23 June 2012 - 06:40 PM


clear!

When a browser supports both mp3 and Ogg (e.g. Chrome) is it a setting within GM or within the browser wich soundfile is used?

Thanks for clarifying even more ;-)

Wouter


The check happens within the browser and not the IDE because you simply don't know which browser every player is going to use.
So your game needs to be shipped with both sound formats and on runtime it is decided which one will be used by the browser.


Thanks!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users