Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

287
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda