Loop audio gap in Firefox

Discussion and feedback on Construct 2

Post » Sun Sep 01, 2013 4:12 pm

Anyone having trouble getting their tracks to loop right? Seems to work fine in Chrome, but Firefox is having trouble looping audio correctly.PixelPalette2013-09-01 16:17:18
B
50
S
11
G
7
Posts: 274
Reputation: 8,146

Post » Sun Sep 01, 2013 5:12 pm

Always. To my knowledge, it doesn't actually support the loop command. There are a couple ways around it, but the most elegant to me was to use a playback position as a trigger to play the track again (you have to alternate tags or it won't work) and place the audio in as a sound effect and not music--you can only have one music track playing at a time. If you're interested, I can detail it a little better later today. It requires a little change in how you would normally make music loops.
B
103
S
38
G
19
Posts: 962
Reputation: 17,996

Post » Sun Sep 01, 2013 5:55 pm

[QUOTE=C-7] Always. To my knowledge, it doesn't actually support the loop command. There are a couple ways around it, but the most elegant to me was to use a playback position as a trigger to play the track again (you have to alternate tags or it won't work) and place the audio in as a sound effect and not music--you can only have one music track playing at a time. If you're interested, I can detail it a little better later today. It requires a little change in how you would normally make music loops.[/QUOTE]

The alternative i came up with is to seeks back to a specific value when its at the end, but it still slightly noticeable. But if your method works great ill implement it.
B
50
S
11
G
7
Posts: 274
Reputation: 8,146

Post » Mon Sep 02, 2013 1:04 pm

The problem is with Firefox, not Construct 2. It should be fixed in the near future when Firefox introduces support for the Web Audio API, which they are actively working on.
Scirra Founder
B
395
S
232
G
88
Posts: 24,368
Reputation: 193,746

Post » Mon Sep 02, 2013 5:48 pm

[QUOTE=Ashley] The problem is with Firefox, not Construct 2. It should be fixed in the near future when Firefox introduces support for the Web Audio API, which they are actively working on.[/QUOTE]


Ah okay then. Good news, i will inform my musician.

Thanks. 8)
B
50
S
11
G
7
Posts: 274
Reputation: 8,146


Return to Construct 2 General

Who is online

Users browsing this forum: blackhornet, jobel and 6 guests