mobileSoundOnChannel says "could not find channel"

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

mobileSoundOnChannel says "could not find channel"

Post by teacherguy »

Can't seem to get the name of the audio file to return.

I have a sound playing on channel 1. When I invoke "answer mobileSoundOnChannel 1" I get "could not find channel."

I have also tried naming the channel....same result.
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: mobileSoundOnChannel says "could not find channel"

Post by jacque »

It's a function, so you need parentheses:

get mobileSoundOnChannel(1)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: mobileSoundOnChannel says "could not find channel"

Post by teacherguy »

Thanks Jacque, I have tried that, with the same result.
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: mobileSoundOnChannel says "could not find channel"

Post by jacque »

A couple of things to check: does a different version of LC work? If so, you may have found a bug unless the version that does work is newer. Also, are you using the simulator or a real phone? It might work differently in the simulator.

If neither of these yields any info then I'd submit a bug report.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: mobileSoundOnChannel says "could not find channel"

Post by [-hh] »

You could try

Code: Select all

get mobileSoundOnChannel("current")
shiftLock happens
teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: mobileSoundOnChannel says "could not find channel"

Post by teacherguy »

Bug report filed.
teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: mobileSoundOnChannel says "could not find channel"

Post by teacherguy »

Bug confirmed.
Post Reply