I'm tearing my hair out trying to play a simple sound on an iPhone app. I've used Rev for a while, but this is my first experience on the iPhone. I've tried using the code referenced in the forums, but just can't get it to work. I hope you generous folks can help.
Here's my script, on a button:
Code: Select all
on mouseup
play playspecialfolderpath(engine) & "/sounds/pleaseplay.aif"
end mouseup
Here's the Finder view of the pieces of the app, showing how the one sound "pleaseplay.aif" is located in a "sounds" folder:
When I set the standalone application settings, I ask LiveCode to include all the files in the "sounds" folder:
After I build the project, if I choose "Show Package Contents" I can see clearly that the app package includes the sounds folder and the specific sound file:
The app loads fine onto the iPhone. But when I click the "Begin" button, no sound. I've tried most permutations of naming, moving files, etc. with no luck. Am I missing something basic here, or is something going on with my build that I'm not understanding?
Thank you!
Doug