How to play a sound file in iOS?
dixonja at hotmail.co.uk
Tue Oct 11 01:57:03 CDT 2011
Choose a short sound that you wish to use as your beep sound, for example 'shortbeep.aiff' and bring it into your iOS environment through the 'copy files' pane. In say your preOpenStack handler put :-
set the beepSound to specialFolderPath("engine") & "/shortbeep.aiff"
Now when you issue a 'beep' command in one of your scripts, then 'shortbeep.aiff' will play.
> Subject: Re: How to play a sound file in iOS?
> From: bvlahos at mac.com
> Date: Mon, 10 Oct 2011 20:20:23 -0700
> To: use-livecode at lists.runrev.com
> Sorry if I'm being dense but I don't see anything on page 31 that will help me.
> Bill Vlahos
> On Oct 10, 2011, at 12:17 PM, John Dixon wrote:
> > Read page 31 of the iOS release notes and all will be revealed..:-)
> >> Subject: Re: How to play a sound file in iOS?
> >> From: bvlahos at mac.com
> >> Jacque,
> >> Where are the alert sounds stored on the iOS devices? It would be better to just use the alert and other sounds already on the phones instead of bringing it with the app.
> >> I don't see it specifically in the specialFolderPath function for iOS.
> >> Thanks,
> >> Bill Vlahos
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode