I am new to RunRev (and programming in general) and am attempting to create a basic game that I will include in a larger application. My problem:
I want background music (an imported auidoclip "~.wav") to play WHILE the user clicks on various icons that provide audio feedback from a different imported audioclip (i.e. a "sound effect"). The problem I encounter is that the music begins as scripted when the card opens, but when the first "sound effect" (i.e. a different imported audioclip) is initiated by the user, the sound effect plays (approx. 1 second) and the music stops permanently.
I've tried to embed the music on a different card and a substack, but the problem persists.
Is it possible to play multiple audioclips (.wav) at the same time? How should I proceed?
Your help is super appreciated.
Simultaneous embedded audioclips
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Simultaneous embedded audioclips
I found this..
Its Sounds to me like you can't do what you want with soundclips, however I think I read elsewhere on the forums that you can start multiple external players, so that might be a solution.
Yeah, found the post I was thinkin of here. http://forums.runrev.com/phpBB2/viewtop ... ple+sounds
Code: Select all
If you start playing an audio clip when another one is playing, the first audio clip is stopped, and a playStopped message is sent to the current card. You cannot play two sounds at the same time, nor can you queue a sound while another sound is playing.
Its Sounds to me like you can't do what you want with soundclips, however I think I read elsewhere on the forums that you can start multiple external players, so that might be a solution.
Yeah, found the post I was thinkin of here. http://forums.runrev.com/phpBB2/viewtop ... ple+sounds
JasonTravers wrote:I am new to RunRev (and programming in general) and am attempting to create a basic game that I will include in a larger application. My problem:
I want background music (an imported auidoclip "~.wav") to play WHILE the user clicks on various icons that provide audio feedback from a different imported audioclip (i.e. a "sound effect"). The problem I encounter is that the music begins as scripted when the card opens, but when the first "sound effect" (i.e. a different imported audioclip) is initiated by the user, the sound effect plays (approx. 1 second) and the music stops permanently.
I've tried to embed the music on a different card and a substack, but the problem persists.
Is it possible to play multiple audioclips (.wav) at the same time? How should I proceed?
Your help is super appreciated.
Hi Jason, you can play more than one sound at a time if you use the player from the Rev Tool Bar. Click on the Source button in the Inspector to get your sound file. Don't know if there's a maximum or not this way, but you can easily play a soundtrack and have two or three sound effects happening over the top, easily.
One thing to mention is that if the player is on a different card (or substack even) you can't play it with script. So all the sounds you need for that particular card need to be on that card in the players.
Hope that's useful for you!

One thing to mention is that if the player is on a different card (or substack even) you can't play it with script. So all the sounds you need for that particular card need to be on that card in the players.
Hope that's useful for you!
