How to know if the audio preload is finished?

Get help using Construct 2

Post » Mon Feb 06, 2012 4:18 pm

@Ashley, Yeah I understand the workaround, But I would need to be able to set the audio to a specific time if you know what I mean.
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Mon Feb 06, 2012 4:20 pm

Yeah, that wouldn't work in Chrome, or in AppMobi or PhoneGap.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528

Post » Mon Feb 06, 2012 10:19 pm

May I ask why is it like this? Is it cos it is still being developed or is it cos of corporate bull?
B
47
S
10
G
6
Posts: 455
Reputation: 8,326

Post » Mon Feb 06, 2012 10:58 pm

It's because audio still isn't well supported on the web:
HTML5 audio has glitches, high latency and bugs, and isn't supported well on mobile
Web Audio API only works on Chrome, but has different tradeoffs, like you don't seem to be able to set the position of a currently playing sound
PhoneGap and AppMobi provide other APIs to play audio, but they are limited to simple "play sound" functionality.
Basically, there's still no widely supported decent audio library for HTML5, so we're stuck with limited features for the time being.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,528

Post » Tue Feb 07, 2012 12:15 am

@Ashley

Thanks.
I understand the complex of audio plugin after read the source code. It will take a lot of effort to maintain audio plugin.
That's why I just propose a patch code, and hope this feature will be added in the future.

(PS. My team member put his game on server so I need to solve this problem by the patch audio plugin, but I really hope Scirra will provide the solution in the future)rexrainbow2012-02-07 02:52:14
B
97
S
22
G
177
Posts: 4,111
Reputation: 103,525

Post » Tue Jul 17, 2012 7:32 pm

When does C2 start to load the "streamed" audio? Preload doesn't seem to have any effect on it. Would it be possible for me to slice my music track and play them as a sound fx?
B
40
S
5
G
5
Posts: 405
Reputation: 5,657

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 36 guests