Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

292
Vistas
Javascript Playing BASE64 Audio Files Without Delay

I wrote a very simple JavaScript file to play BASE64 Wav files.

I did not paste the encoded wav files becuase it's a HUGE string and it won't let me post it anyways but just for you to get the idea :

let whiteNoise=new Audio("data:audio/wav;base64, {{Here goes the BASE64 Wav encoded file of the white noise}} ");
let pinkNoise=new Audio("data:audio/wav;base64, {{Here goes the BASE64 Wav encoded file of the pink noise}} ");

whiteNoise.play();

whiteNoise.onended=function()
{
    pinkNoise.play();
};

pinkNoise.onended=function()
{
    whiteNoise.play();
};

It's working (almost) perfectly the only issue I got is that there is a tiny delay between then

[White Noise][***UNWANTER DELAY***][Pink Noise][***UNWANTER DELAY***] (etc...)

I Want to get

[White Noise][Pink Noise][White Noise][Pink Noise] (etc..)

So it would sound like 1 single endless file :)

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda