Page 1 of 1

Sound problems on iOS

Posted: Fri May 22, 2015 2:28 pm
by kroka
Hello everybody,

I made a little math-game for kids. It is running fine on Windows and Mac. But the iPad version (which it was meant for) crashes all the time.

It seems to me that the crashes have to do with the playing of sound.

play audioclip "intro.wav" is working.

"play stop" is not working on iOS (iPad 2) Sound is just playing on.

"play empty" is working - but it seems to me that this command sometimes (not always) causes the app to crash.

Has anybody experience with playing and stopping sound on iPad?

Is it possible that these problems started with LC7? Had a lot of trouble since I switched to 7...

Is there any other way to play sound on iOS?

Any idea or thought is appreciated.

Kroka

Re: Sound problems on iOS

Posted: Fri May 22, 2015 5:06 pm
by Simon
Hi kroka,
audioclip is not supported on mobile.
Try "mobilePlaySoundOnChannel" and it's variations.

Simon

Re: Sound problems on iOS

Posted: Fri May 22, 2015 5:53 pm
by kroka
Hi Simon,

thanks for your reply,

"play audioclip" is supposed to be supported on mobile... and it is actually playing the clip.

(http://newsletters.livecode.com/january ... etter3.php)

But you are right, in practice it's not working properly and therefore not useful.

I tried mobilePlaySoundChannel and so on... not so userfriendly and difficult for cross-platform developing since you only can test it on iOS SImulator.

But it seems to work, the crashes are gone. Now there's a lot to rebuild...

Thanks

Kroka

Re: Sound problems on iOS

Posted: Mon Oct 24, 2016 7:39 pm
by jworling
Hi Simon/Kora

Thanks for posting this info - I had the same problem with Play/Play empty crashing on iOS (took a while to track it down!). Currently running LiveCode 8.1.1 and Dictionary documentation says iOS and android are supported. If it's not supported (without crashing) on iOS, documentation should be updated.

Switched to mobilePlaySoundOnChannel and it now runs successfully under iOS.

Thanks again for posting this info - most useful.

Jamie