How to play a sound file in iOS?
bvlahos at mac.com
Mon Oct 10 13:02:52 CDT 2011
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.
On Oct 9, 2011, at 9:02 PM, Bill Vlahos wrote:
> Ah. That did it.
> Thank you,
> Bill Vlahos
> On Oct 9, 2011, at 8:55 PM, J. Landman Gay wrote:
>> On 10/9/11 10:09 PM, Bill Vlahos wrote:
>>> How do I play a sound file?
>>> I've attached a wav and an mp3 file to the stack but the following
>>> statements don't do anything in the simulator.
>> You can only play files that are stored on disk. Include the sound files in the Copy Files pane of the standalone builder. In your scripts, provide a full path relative to the engine:
>> play specialFolderPath("engine") & slash & "gong.wav"
>> Also, older versions of the simulator (3.2) won't play sounds. In 4.2 simulator they do play. They always played on a real device though.
>> Jacqueline Landman Gay | jacque at hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> 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