Sound issue's

Community Forums/Monkey Talk/Sound issue's

freedo(Posted 2011) [#1]
Ive tried the demo apps on the monkey site but dont seem to get any sound....some of them say toggle sound with s key...
press the s key yet still no sound....anyone know why..?

trying to run on desktop pc...so probably the html5 versions..


GfK(Posted 2011) [#2]
Probably a browser problem. Html5 doesnt support certain audio formats in various browsers.

Everything should work fine in Chrome.


freedo(Posted 2011) [#3]
I upgraded browsers because the html5 apps would not run....
the latest internet explorer runs the apps....

are you saying that this browser may be the problem..?


GfK(Posted 2011) [#4]
Yep. Try chrome. You can always uninstall chrome afterwards if you want to.


freedo(Posted 2011) [#5]
dont really want to change browser's as most people use ie...

also went and tried some of the new game maker html5 apps and they dont seem to suffer this problem...

they have sound...

I dont think its a browser issue..

I think it's a Monkey issue..


GfK(Posted 2011) [#6]
No, its a browser issue.

As i said before, certain browsers only accept sound in specific formats for html5. You have two choices - change the audio files to another format, or change to another browser.


therevills(Posted 2011) [#7]
From the audiotest.monkey sample:

#Elseif TARGET="html5"
		'Less than awesomely, there appears to be no 'common' format for html5!
		'Opera/Chrome appear to handle everything, but...
		'IE wont play WAV/OGG
		'FF wont play MP3/M4A
		'Let's support OGG!
		fmt="ogg"		'use M4a for IE...


Last edited 2011


AdamRedwoods(Posted 2011) [#8]
http://www.phoboslab.org/log/2011/03/the-state-of-html5-audio


freedo(Posted 2011) [#9]
Ok..been around a few sites now playing html5 games....

No sound issue's with them...and im still using ie9.....

Just seem's to be monkey....

Proof is in the testing.....


therevills(Posted 2011) [#10]
What sound format are you using? Can you find out what formats the html5 games you've played that has sound?

If you are using IE try M4a... like it states in the comments.

Last edited 2011


BlitzSupport(Posted 2011) [#11]
@freedo: it probably means the particular games you've tried have been written to select different sound samples/formats based on browser detection, whereas the simple examples supplied with Monkey don't do that.

It doesn't mean you can't do that within Monkey games, it just means you have to add as much extra code (and sound formats) as those games would have had to add.


therevills(Posted 2011) [#12]
Yeah you could do that too ;)

We recently added getBrowserName in Diddy, so you can do something like this:
Import diddy

Function Main:Int()
	Local browser:=GetBrowserName()
	Local sndfrmt:="ogg"
	
	Print browser
	
	Select browser
		Case "Chrome"
			sndfrmt= "ogg"
		Case "Firefox"
			sndfrmt= "ogg"
		Case "Explorer"
			sndfrmt= "m4a"
	End
	Print "using "+sndfrmt
	
	Local sndTest:Sound = LoadSound("test"+sndfrmt)
	
	Return 0
End



okee(Posted 2011) [#13]
dont really want to change browser's as most people use ie

IE has been on the decline for many years, IE9 which accounts for approximately 10%
of the browser install base has supposedly full support for HTML5, IE8 doesn't fully support html5,
and 6 and 7 have no support.

Last edited 2011

Last edited 2011


xlsior(Posted 2011) [#14]
dont really want to change browser's as most people use ie


Actually -- while IE is still the most commonly used browser in many countries, they have less than a 50% market share which means that MOST people use something OTHER than IE.

http://gs.statcounter.com/#browser-ww-monthly-200807-201112