Playing more than one audio file at once

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Playing more than one audio file at once

Post by gyroscope » Sun May 11, 2008 12:01 pm

Hi, is it possible to script so as to play two or more sounds within Rev at the same? If not, is there an external (other than Quicktime) that I would need?

Thanks!

:)

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sun May 11, 2008 3:25 pm

Dear gyroscope,

You should be able to load two players and play them at the same time. You can obtain a nice effect by reducing the volume of one player while increasing the volume of the other.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Post by gyroscope » Sun May 11, 2008 8:08 pm

Thank you for your quick reply, Mark.

Ahh, I see, so single sounds are best referenced or imported; and more than one sound at a time (for one project I have in mind, there might be three or four sound effects playing at once) you use players on a hidden card and reference them from there, if I've understood you correctly?

Which leads me onto one of my personal newbie tripwires, which I am sure is straightforward to do (or obvious) but still leaves me scratching my head:

I drag a player onto the card, click the source folder icon in the inspector, and all sound files are greyed out. So I open someone else's stack, and there is their player which accepts sounds. The only difference which I can see between the two is that in Tracks in the Inspector, the other person's player Type is called Sound, while mine is called Video. I've tried different things to make my player Type to sound (clicking around), but I'm blowed if I can :( (it doesn't tell you in the Rev User Guide that's for sure!)... I'd be grateful for help there please...

:)

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sun May 11, 2008 8:36 pm

Gyroscope,

How come you don't see that little menu at the bottom of the Open File dialog? You are not the first to overlook it, but I really wonder why.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Post by gyroscope » Sun May 11, 2008 8:49 pm

D'oh! :oops: Opticians for me, first thing Monday...

Thank you for your help Mark, much appreciated.

:)

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sun May 11, 2008 9:49 pm

Being an optician must be quite beneficial, these days ;-)

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

gyroscope
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 404
Joined: Tue Jan 08, 2008 3:44 pm
Contact:

Post by gyroscope » Wed May 14, 2008 9:54 pm

Drat, I've just tripped over another newbie tripwire:

play player "This Sound" works fine, but play player "This Sound another" on card 2 or next card, etc brings up a black box containing the name of the audio file. I'm sure it's staring me in the face what the line should be (he says, cleaning his glasses...)

:?

Edit: I've just been informed that playing an audio player from a different card is not possible. :cry:

Post Reply