Integrating with SWIFT

Interested adding compiled externals from LiveCode and third parties to your LiveCode projects? This is the place to talk about them.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gvossos1
Posts: 2
Joined: Sun Nov 30, 2014 8:52 am

Integrating with SWIFT

Post by gvossos1 » Sun Oct 25, 2015 3:51 am

Hi,

What is the best way for me to integrate a SWIFT iOS utility class into my commerical LiveCode iOS app (iMixtape)?

The SWIFT external I’d like to integrate sits at github - sound-fader-ios

Any pointers / workarounds would be greatly appreciated.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Integrating with SWIFT

Post by Simon » Tue Oct 27, 2015 4:15 am

Hi gvossos1,
Welcome to the forum!

I don't think you need Swift to do what sound-fader-ios is doing, all can be done inside LiveCode.
Check out mobileSetSoundChannelVolume, combine that with a loop and the two formulas shown in the Git page and you can do it. That includes the logarithmic fade.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

gvossos1
Posts: 2
Joined: Sun Nov 30, 2014 8:52 am

Re: Integrating with SWIFT

Post by gvossos1 » Tue Oct 27, 2015 11:36 am

Thanks for a very plausible solution Simon - let me try and fuse this together using the mobileX LC calls.

I will report back my findings on this thread.

Post Reply

Return to “Using Externals”