Audio File Question

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jnmediaGAd195
Posts: 58
Joined: Mon Dec 05, 2011 5:35 pm

Audio File Question

Post by jnmediaGAd195 » Thu Mar 01, 2012 3:48 am

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.

hliljegren
Posts: 111
Joined: Sun Aug 23, 2009 7:48 am
Contact:

Re: Audio File Question

Post by hliljegren » Mon Mar 26, 2012 12:47 pm

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
___________________________________
MacBook Pro M1 MAX 64 Gb,
LiveCode 10.0.1rc3

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Audio File Question

Post by jacque » Mon Mar 26, 2012 5:29 pm

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

Post Reply