Can't play simple sound on iPhone
Posted: Mon Dec 19, 2016 5:17 pm
LC 8.1.1 (stable) iMac OSX 10.12.1 XCode 8.1 (This combination allows me to build on the iPhone)
This is the code used on LC's website as an example. Created a simple 1 button script to test but I can't get the sound to play on iOS. This stack works fine on Android phone/PC/Mac desktop but not iPhone 6. Tried playing sound using mobilePlaySoundOnChannel with no success. The sound has been imported and added in the Copy menu standalone settings. Anybody got any other suggestions to try?
on mouseUp
if the environment = "mobile" then
put specialFolderPath("engine") & slash & "NextCard.aiff" into NextCardSound
play NextCardSound
--mobilePlaySoundOnChannel NextCardSound,"current","now"
else
play "NextCard.aiff"
end if
end mouseUp
This is the code used on LC's website as an example. Created a simple 1 button script to test but I can't get the sound to play on iOS. This stack works fine on Android phone/PC/Mac desktop but not iPhone 6. Tried playing sound using mobilePlaySoundOnChannel with no success. The sound has been imported and added in the Copy menu standalone settings. Anybody got any other suggestions to try?
on mouseUp
if the environment = "mobile" then
put specialFolderPath("engine") & slash & "NextCard.aiff" into NextCardSound
play NextCardSound
--mobilePlaySoundOnChannel NextCardSound,"current","now"
else
play "NextCard.aiff"
end if
end mouseUp