Detect if audio playing, or when audio has started

Get help using Construct 2

Post » Mon Sep 10, 2012 6:40 am

I'm doing a web app for a client that requires synchronization of animations with audio. I currently use "On Preload Ended" as the mechanism to determine the start-point of the audio, but that becomes limiting in the sense that I can't preload any other audio without it throwing off the synchronization.

Is there the ability to detect when an audio starts, or even just if it's playing at all?
B
14
S
1
G
2
Posts: 85
Reputation: 2,810

Post » Mon Sep 10, 2012 9:05 am

Audio is supposed to start when you use the action "Play" and set what sound to play.

To know when it is playing, set a global variable right after the "play" action.

Audio support in browsers is still messy, nothing more to do than those workarounds as far as I know.Kyatric2012-09-10 09:05:48
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Mon Sep 10, 2012 1:27 pm

But if there's preload to be done (even if it only takes a second), and I set a variable to 'true' right after the 'play' button, then my audio is out of sync.
B
14
S
1
G
2
Posts: 85
Reputation: 2,810


Return to How do I....?

Who is online

Users browsing this forum: Artpunk, Axiomaltd, OddConfection and 20 guests