Page 1 of 1
Playing Multiple Audio Tracks Simultaneously
Posted: Sat Jan 07, 2023 8:22 pm
by vcirilli
Is it possible to have multiple audio files playing at the same time.
Ex. Background music playing while a dialog track plays at the same time.
I've tried Play audioClip and Play File.
Both replace the previously playing file.
Working on Mac at the moment but eventually would like to build for Android/IOS
Thank Vincent
Re: Playing Multiple Audio Tracks Simultaneously
Posted: Sat Jan 07, 2023 8:23 pm
by richmond62
I think you have already answered your question yourself.
Re: Playing Multiple Audio Tracks Simultaneously
Posted: Sat Jan 07, 2023 11:42 pm
by vcirilli
Yes I found the documentation that states that.
Evidently a LC limitation, bummer.
Might there be a plugin to help with playing multiple audio tracks?
Re: Playing Multiple Audio Tracks Simultaneously
Posted: Sun Jan 08, 2023 12:32 am
by SparkOut
Uh... what documentation did you read?
You can't play embeded audioclips simultaneously, that I believe.
You can't simultaneously play two files in one Player object, but you can easily have multiple Player objects with different filenames playing at the same time. You just have to reference each one individually.
Re: Playing Multiple Audio Tracks Simultaneously
Posted: Sun Jan 08, 2023 3:49 am
by vcirilli
I was using Play audioClip.
Player Object !! Thanks
Re: Playing Multiple Audio Tracks Simultaneously
Posted: Wed Jan 11, 2023 1:04 am
by vcirilli
Player doesn't work on Android.
Re: Playing Multiple Audio Tracks Simultaneously
Posted: Wed Jan 11, 2023 2:27 am
by SparkOut
Yes it does, but you have to create the object dynamically.
See mobileControlCreate in the dictionary. You have to create and manage these controls by script on opening a card and delete them again when you change card, or else they will stay open over the new card, which might interfere with the layout.
Re: Playing Multiple Audio Tracks Simultaneously
Posted: Wed Jan 11, 2023 8:48 pm
by vcirilli
Ok I see thanks.