Music and Sound folder question

Discussion and feedback on Construct 2

Post » Sat May 17, 2014 7:50 am

Hi guys, I was really wondering about the music and sound folder.

We have two separate folders for all audio. Music and Sound folder. Please correct me if I'm wrong, but these are what I understand:

1: Sound folder is completely downloaded to the player side (is it because it is usually smaller in size?), whereas the Music folder is streamed only when it is played (larger size?).

2: There are audio limitations in mobile games. Sound effects (sound folder I presume) works fine, but musics (music folder?) has a problem in that it doesn't work on the start of layout event. It requires a player to initiate a touch before it plays.

Based on those two, would this be a correct?

1: So it looks like the sound folder and music folder are specially for games that are hosted on a server and require constant Internet connection to play, like on Scirra's Arcade, since they are partially downloaded and streamed.

2: But for mobile games, that isn't the case since the player needs to download everything to play the game even if he is offline.

So am I correct to come to the conclusion that since the Music folder for mobile games require player activity to start, is it not better if we placed all audio, even the music in the sound folder since it doesn't share the same problem as the music folder? Or am I missing something?
B
46
S
23
G
31
Posts: 693
Reputation: 20,637

Post » Sun May 18, 2014 11:52 am

Music needs to go into Music folder because of the streaming, if you place it in Sounds, it will try to load entire file and then play, which would cause a big delay. Whereas Music will start streaming and play with about 1s delay only (close to 0 on newer devices).
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Sun May 18, 2014 11:55 am

@Silverforce, thanks for that. So does that mean that streaming in this case, doesn't mean online streaming? But refers to whether the game will actually load to memory?

Haha sorry if my question is quite noob, as I really am a bit clueless in this aspect.
B
46
S
23
G
31
Posts: 693
Reputation: 20,637

Post » Mon May 19, 2014 2:00 am

rekjl wrote:@Silverforce, thanks for that. So does that mean that streaming in this case, doesn't mean online streaming? But refers to whether the game will actually load to memory?

Haha sorry if my question is quite noob, as I really am a bit clueless in this aspect.


Streaming in this case is loading the music file (.ogg or .mp4) into memory and playing it. As music is not automatically loaded into memory unless its called.

On older devices, its highly recommended to do a Preload first, then wait ~2s before playing to ensure the file plays correctly (as it takes time to read and load into memory). I found my older phones would not play a bigger track without that preload time.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Mon May 19, 2014 5:15 am

@Silverforce, thank you for clearing that up. It makes sense to me now. But how do you preload music? I didn't notice this in the tutorials that I've viewed.
B
46
S
23
G
31
Posts: 693
Reputation: 20,637

Post » Mon May 19, 2014 6:02 am

ImageImageImage
B
71
S
22
G
259
Posts: 3,794
Reputation: 143,704

Post » Mon May 19, 2014 6:48 am

@blackhornet, thanks for that! Haha now to test it out on a few different spec phones to see if I should preload my music or not. Again, thanks guys!
B
46
S
23
G
31
Posts: 693
Reputation: 20,637


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 17 guests