Playing Multiple Audio Tracks Simultaneously
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Playing Multiple Audio Tracks Simultaneously
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
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
-
- Livecode Opensource Backer
- Posts: 9359
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Playing Multiple Audio Tracks Simultaneously
I think you have already answered your question yourself.
Re: Playing Multiple Audio Tracks Simultaneously
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?
Evidently a LC limitation, bummer.
Might there be a plugin to help with playing multiple audio tracks?
Re: Playing Multiple Audio Tracks Simultaneously
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.
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
I was using Play audioClip.
Player Object !! Thanks
Player Object !! Thanks
Re: Playing Multiple Audio Tracks Simultaneously
Player doesn't work on Android.
Re: Playing Multiple Audio Tracks Simultaneously
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.
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
Ok I see thanks.