Problems playing sounds on ios

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
doobox
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 284
Joined: Tue May 24, 2011 11:47 pm

Problems playing sounds on ios

Post by doobox » Tue Feb 21, 2012 11:44 pm

Hi there,

I have been away from livecode for some time now, But this used to work for me fine, so i am wondering what on earth i am doing different here.
I have a blank test stack here with just one button, and the sound file on copy files... testing crashes the simulator every time.

I do see the message "Audio file was found!" and then crash...?

Code: Select all

on mouseUp
   put specialFolderPath("engine") & "/tm_btn_mech_03.wav" into tAudioPath
   if there is a file tAudioPath then
      answer "Audio file was found!"
      play tAudioPath
   else
      answer "Audio file not found!"
   end if
end mouseUp
Kind Regards
Gary

https://www.doobox.co.uk

doobox
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 284
Joined: Tue May 24, 2011 11:47 pm

Re: Problems playing sounds on ios

Post by doobox » Wed Feb 22, 2012 12:07 am

Oh Oh.. seems this works fine on another machine "my mac book air", but wont work on my main dev machine for some reason.
Me thinks this has to be a permissions issue, though i have not seen any other issues with any other software to date.. puzzled...!

Any thoughts appreciated :-)
Kind Regards
Gary

https://www.doobox.co.uk

Post Reply