Jump to content

Playing music / sounds without decoding


vamos
 Share

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?

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

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...

Link to comment
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...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...