Code: Select all
put theResourcesPath & theFile into tSoundFile
if the platform is "android" or the platform is "iphone" then
if there is a file tSoundFile then
set the playLoudness to 100
play tSoundFile, false
if the result is "could not play sound" then
debugIt ("unable to play sound file " & tSoundFile)
else
debugIt ("playing " & theSound & " sound: " & tSoundFile)
end if
else
debugIt ("couldn't find file " & tSoundFile)
end if
end if