Page 1 of 1
Audio File Question
Posted: Thu Mar 01, 2012 3:48 am
by jnmediaGAd195
I am using a few audio files. When I run my code in LiveCode, the sounds are fine. When I do a build and port the app to my iPad to test it, I have no sounds. I am using WAV files. Any thoughts are appreciated.
Re: Audio File Question
Posted: Mon Mar 26, 2012 12:47 pm
by hliljegren
If you are developing for iPad you need to use the modified play-command. So you have a difference from LiveCode on how you play audio files. On top of that you need to ensure that the audiofiles are included in your built project. There is an example stack in the mobile examples section. Take a look at that and see if it helps. You can also read the iOS release notes where the play command is described. (Page 35-)
:-HÃ¥kan
Re: Audio File Question
Posted: Mon Mar 26, 2012 5:29 pm
by jacque
Actually, "play" should work fine, I've been using it. If you don't hear anything it's likely a file path problem. On mobile you can't play sounds embedded in a stack, they have to be separate files included with the build. Then you construct a path to the sound and "play" it.