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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.