Sound formats

Monkey Forums/Monkey Programming/Sound formats

GfK(Posted 2011) [#1]
Hi. I'm a n00b.

What sound formats does monkey support? Are any/all platform-dependent? Been reading the docs a bit but couldn't find anything.


Canardian(Posted 2011) [#2]
It was somewhere in the docs said that Monkey supports ogg, wav and mp3. Flash works only with mp3, and Android works with ogg, and all other good systems work with ogg of course too, because it's the best audio format.

Looking at trans.monkey you can find details what audio formats are supported for each target, for example XNA is crap because it supports only wav and mp3.


Volker(Posted 2011) [#3]
Take a look at:
\Monkey\bananas\mak\audiotest
It shows how to build with sound with for different platforms.


Canardian(Posted 2011) [#4]
Ah yes, that's the doc where I saw the differentiation between targets. I wonder though why it says that ogg is for Android only, since it works in HTML5 too, and probably also on GLFW.


Jesse(Posted 2011) [#5]
Ogg does not work on Safari and from what I read, I don't think it works on IE9.


therevills(Posted 2011) [#6]
Welcome aboard Dave :)

Currently there are a few sound issues with a few of the Targets.

If you check out AudioTest.monkey from the samples, you can see this bit of source code:

#if TARGET="flash"
		shoot=LoadSound( "shoot.mp3" )
		tinkle=LoadSound( "tinkle.mp3" )
#else If TARGET="android"
		shoot=LoadSound( "shoot.ogg" )
		tinkle=LoadSound( "tinkle.ogg" )
#else
		shoot=LoadSound( "shoot.wav" )
		tinkle=LoadSound( "tinkle.wav" )
#endif


Bit of a pain at the moment, having to have 3 different formats per sound...

[opps didnt see Volker's post... :P]


dopeyrulz(Posted 2011) [#7]
Yeah - a big Noob Dave! Hahaha

Welcome over!


Wagenheimer(Posted 2011) [#8]
What is the best audio format for IOS?

Is it possible to Loop?


Wagenheimer(Posted 2011) [#9]
I tried mp3, ogg, wav, caf nothing works on my Iphone. =(

Well... Wav worked for me now! But playing it on the game initialization does not works.

But Iphone does not support any compressed audio format?


Perturbatio(Posted 2011) [#10]
according to http://www.ifunia.com/iphone-column/iphone-supported-video-audio-formats.html

the iPhone supports:


AAC (8 to 320 Kbps)
Protected AAC (from iTunes Store)
HE-AAC,
MP3 (8 to 320 Kbps)
MP3 VBR
Audible (formats 2, 3, 4, Audible Enhanced Audio, AAX, and AAX+)
Apple Lossless
AIFF
WAV




wazoo(Posted 2011) [#11]
Hey all,
N00b to the platform (as of tonight) but

Take a look at:
\Monkey\bananas\mak\audiotest
It shows how to build with sound with for different platforms. 


Doesn't seem to be there. Is there anything else that points to playing audio?


therevills(Posted 2011) [#12]
Have you downloaded v31?


wazoo(Posted 2011) [#13]
whatever was sent to me via the purchase link. I'll see if I can find v31.

*pause*

Well that was foolish of me. There it is. Thanks all!