Sign in to follow this  
vamos

Playing music / sounds without decoding

Recommended Posts

Hello fellow html5 developers

Does anyone know if there's a reliable way to play large sound files (like a background music track) via WebAudio, without having to decode the whole file first? The decoding process uses a lot of memory and on mobile platforms it seems to take forever.

Can you recommend any viable alternative?

Share this post


Link to post
Share on other sites

For WebAudio, the only way to avoid decoding the file is to not have it encoded, so have it as a wav. But your file will be huge so that probably isn't practical on the web.

Otherwise why not use an audio tag just for the background music only? Audio tags can play without having to download the full file first...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.