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
Playing Sound
Moderators: LCNeil, heatherlaine, kevinmiller, elanorb
Re: Playing Sound
Hi Mark,
I see that you have posted the same question in our beginners forum here-
http://forums.runrev.com/viewtopic.php? ... 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-
http://livecode.byu.edu/audio/audioplayback-mobile.php
Kind Regards,
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
LiveCode – Realize fast, compile-free coding
—
I see that you have posted the same question in our beginners forum here-
http://forums.runrev.com/viewtopic.php? ... 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-
http://livecode.byu.edu/audio/audioplayback-mobile.php
Kind Regards,
Neil Roger
--
RunRev Support Team ~ http://www.runrev.com
LiveCode – Realize fast, compile-free coding
—