Audio File Question
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 58
- Joined: Mon Dec 05, 2011 5:35 pm
Audio File Question
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.
-
- Posts: 111
- Joined: Sun Aug 23, 2009 7:48 am
- Contact:
Re: Audio File Question
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
:-Håkan
___________________________________
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3
Re: Audio File Question
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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com