x


WEB game how in the dozens of songs quickly switch? There is a good way to do

I would like to develop a music web game, players need to select the song in dozens of favorite songs. Each song about 3MB. Players have to Load a few minutes for each song selection. How can shorten the Load time? Without the use of Load, online play songs? As music sites

more ▼

asked Dec 07 '09 at 10:29 AM

user-476 (google) gravatar image

user-476 (google)
17 1 1 2

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Try saving the music as .ogg files, and use WWW.audioClip to access them. That allows you to start playing audio clips before they finished downloading.

more ▼

answered Dec 07 '09 at 12:24 PM

jonas echterhoff gravatar image

jonas echterhoff ♦♦
9.8k 7 23 104

Yes, Jonas is on the right track here (Pun intended). You don't want to preload all music, but to stream them asynchronously using WWW. Make sure to check out the docs on the WWW class.

Dec 07 '09 at 01:23 PM Statement ♦♦
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1029
x96

asked: Dec 07 '09 at 10:29 AM

Seen: 770 times

Last Updated: Dec 07 '09 at 01:14 PM