I tried this code:
Code: Select all
on PlaySound pSound
if pSound is empty or pSound is "pSound" then put "wine_glasses_x2_clink_004.mp3" into pSound
set the itemDel to "/"
put item 1 to -2 of (the fileName of this stack) into tSoundFile
put "/sound files/" & pSound after tSoundFile
if the environment is "mobile" then
mobilePlaySoundOnChannel tSoundFile, "current", "now"
else
play tSoundFile
end if
end PlaySound
On android nothing happens.
The folderpath is correct. The file suffix is correct. The folder "sound files" is included in the standalone application settings under "included files and folders".
Any ideas?? Thanks for your help guys!
-Will