question about "preload sound"

0 favourites
  • 8 posts
  • Is the preload sound feature a way to load sound effects into ram so theres no pause the first time you play it?

    So, for most games, should we at start of frame, preload all the sound effects for that frame?

  • RAM isn't important, it starts the audio downloading so there's no pause while it downloads the first time you play. More information in the manual.

  • "To speed up the loading time and start the game sooner, audio is downloaded or streamed on-demand during the game. In other words, nothing is downloaded until a Play action starts playing an audio file. Then, if the audio file is in the Music folder it starts streaming from the server; if in the Sounds folder, it starts downloading and will play when finished downloading. This also helps minimise the bandwidth requirement on the server since unused audio is never downloaded. However, it can introduce a delay before audio plays for the first time. The delay on first play is a one-off, because after the first play the sound is already downloaded and can be played immediately if played a second time.

    You can also use the Preload action to start downloading an audio file without actually playing it. This can be done on Start of layout to start downloading a few important sound effects so there is no delay when they are played for the first time. However it is entirely optional (all games will work without any preloading at all), and it should not be over-used since preloading too many sound effects on startup can slow down browsers with too much downloading and result in no sound effects playing at all for a while."

    Big up for manual.

  • Thanks guys, and manual! I'll be sure to check with it from now on before posting a question. :)

  • If I preload a sound, then use it and then change layout, I have to preload again it if I want to use in the new layout or it is not necessary?

    Thx in advance.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You only need to preload once. Preloading is global to the entire game, and is not affected by changing layout.

  • K.

  • Is it possible that when a sound loads, it not only causes a delay in the sound, but also freezes the layout itself.. especially if the sound is large (2mb+)?

    Im getting a weird intermittent freezing on my game and it may be possible (still testing) it is resolved when i remove the audio object completely so im just curious how that all works.

    Thanks!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)