Page 2 of 2
Re: Playing a sound in IOS
Posted: Mon Dec 12, 2011 7:22 am
by maxs
Ok, I did get a sound to play once in my ios simulator. But after 3 hours of endless variations, I has yet to recreate this feat.
I tried playing the sound "an.aif" from a folder (blendysounds) in the same folder(livecode) as the stack.
on mouseUp
play specialFolderPath("engine") & "/livecode/blendysounds/an.aif"
end mouseUp
I tried
on mouseUp
play specialFolderPath("engine") & "/blendysounds/an.aif"
end mouseUp
I copied blendysounds/an.aif into the copy files section on the App settings tab. Nothing works. (What, what what could I be missing?) Max
Re: Playing a sound in IOS
Posted: Mon Dec 12, 2011 8:04 am
by jacque
What version of the simulator are you using? Sounds wouldn't work for me in one of the older ones.
Re: Playing a sound in IOS
Posted: Fri Dec 16, 2011 8:02 am
by maxs
OK I found my mistake.
It appears that I needed to have an exact matching case for the text.
Hurrah!
Max
Re: Playing a sound in IOS
Posted: Fri Dec 16, 2011 8:45 am
by jacque
I should have thought of that, it's bitten me too. iOS, like unix, is case-sensitive. There's a mention of it in the release notes somewhere. Very glad you're back in business.
Re: Playing a sound in IOS
Posted: Thu Dec 22, 2011 9:46 pm
by jmburnod
Hi All,
Is there a way to play a sound file from a server in IOS ?
play MyUrl work on desktop but not in IOS
Best regards
Jean-Marc
Re: Playing a sound in IOS
Posted: Sat Jan 07, 2012 6:36 am
by maxs
Hi,
I have created a standalone build for minimum version ios 4.2.
When I install the app on any machine that runs ios 5.0 , all the sound files play fine,
When I install the same app on any ipod that runs ios 4.2, none of the sound files play.
Why would the sounds not play on these slightly older machines. THE OTHER APPS produce sounds.
MAX
Re: Playing a sound in IOS
Posted: Tue Jan 10, 2012 8:02 am
by maxs
Hi.
Does anyone ever had problems playing sound files in an app on a second generation ipod? I loaded the same program on an ipad and ipod touch 4 and sounds play fine. I use a 4.2 OS build.
Re: Playing a sound in IOS
Posted: Wed Jan 11, 2012 8:04 am
by maxs
This seems to be my last hurtle in order to finish my first ios app. My school has only second generation ipods. So I must have sound files that will play in those machines. So here is my last call out to anyone they may have had success with livecode sounds files playing on second generation ipods.
Hi,
I have created a standalone build for minimum version ios 4.2.
When I install the app on any machine that runs ios 5.0 , all the sound files play fine,
When I install the same app on any ipod that runs ios 4.2, none of the sound files play.
MAX
Thank you to all for all previous help.
Re: Playing a sound in IOS
Posted: Thu Jan 12, 2012 12:39 pm
by spencer
We've gotten the best results using caf sound files - Apple Core Audio Format, developing apps in XCode with Objective-C, and delivering on IOS 4.2.
Re: Playing a sound in IOS
Posted: Mon Jan 23, 2012 7:36 am
by maxs
OK So I finally figured out why my sound files were not playing in ios. All my sound files were in a folder on the desktop. Once I moved them out into a HD folder, they played.
Only 4 months for me to figure that one out.
.
Max