Playing Sound

Moderators: LCNeil, heatherlaine, kevinmiller, elanorb

Post Reply
Posts: 140
Joined: Thu Oct 17, 2013 2:26 pm

Playing Sound

Post by marcelloe » Mon Nov 18, 2013 10:09 pm

I have went through the lesson on playing sounds. In the article it says it is picky to play sounds. I have tried wav, mp3, and aiff files with no luck. I also, have uploaded the sound file to the stack. What am I doing wrong?

on mouseUp
play audioclip "sound.wav"
end mouseUp

Livecode Staff Member
Livecode Staff Member
Posts: 1223
Joined: Wed Oct 03, 2012 4:07 pm

Re: Playing Sound

Post by LCNeil » Tue Nov 19, 2013 4:27 pm

Hi Mark,

I see that you have posted the same question in our beginners forum here- ... 604#p90604

What Klaus has suggested is correct. If you have imported the audio files as controls then these will not play back on mobile devices.

If you wish to incorporate audio playback on mobile, you must include your audio files in the "Copy Files" section of the "Standalone Application Settings" and reference them from there.

By default, files included here can be referenced from the specialfolderpath("engine") directory.

The following site explains playback of audio in LiveCode for mobile in great detail-

Kind Regards,

Neil Roger
RunRev Support Team ~
LiveCode – Realize fast, compile-free coding

Post Reply

Return to “idea2app and Coding School”