How to control audio balance?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
xfratboy
Posts: 97
Joined: Fri Mar 05, 2010 9:09 pm

How to control audio balance?

Post by xfratboy » Wed Jan 06, 2016 5:53 am

Is there any new or exciting way to control the balance of audio and sound playback ? I'm looking for a way to send audio to the left and right channels. Previously I've used an external called enhancedqt but I read somewhere that Apple was getting rid of the QuickTime player. True?

Martin Koob
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 256
Joined: Sun May 27, 2007 8:19 pm

Re: How to control audio balance?

Post by Martin Koob » Wed Jan 06, 2016 4:18 pm

Apple is deprecating QuickTime and moving to AVfoundation. The Player in LiveCode on the Mac is now based on AVfoundation. I would also like to be able to control audio levels on right and left channels but I have not been able to find a way to do it. Monte has and external mergAV http://mergext.com/home/mergav/ which has more features like video capture which I use. I have looked through his docs and the Apple's AVfoundation Docs and I don't see that there is a way to control right left audio channel balance. I suspect it is something that you need to delve into core audio or something like that to get access too.

Martin

xfratboy
Posts: 97
Joined: Fri Mar 05, 2010 9:09 pm

Re: How to control audio balance?

Post by xfratboy » Wed Jan 06, 2016 10:37 pm

I sure hope something can be done to fix this because my customer is lost to the competition unless I can resolve.

Martin Koob
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 256
Joined: Sun May 27, 2007 8:19 pm

Re: How to control audio balance?

Post by Martin Koob » Thu Jan 07, 2016 12:36 am

There is a pan feature in AVAudio player

https://developer.apple.com/library/ios ... Player/pan

https://developer.apple.com/library/mac ... Player/pan


This is part of the AVFoundation library. I don't know if this could be used in conjunction with a video player.

To get this implemented (if it is possible) you could put a feature request in to LiveCode to add it to the player object or you could contact Monte and see if could be added to the player in mergAV. Monte does do contract work to add features to his externals. You would have to ask him if it is possible and how much he would charge to do that work.

Martin

Post Reply