Urgent.News

What's breaking now, across hundreds of outlets.

Tech

How to export WAV files and ZIP archives entirely in the browser with vanilla JavaScript

I recently needed a small browser tool that could generate retro game sound effects and export several variations at once. The constraints were: no account or backend no audio upload no external ZIP library plain HTML/JavaScript that can be hosted on GitHub Pages output useful enough for a real game project The result is Retro SFX Lab , a free local browser SFX generator. Its newest version can…

The article discusses a browser-based tool called Retro SFX Lab that can generate retro game sound effects and export them as WAV files in a ZIP archive using only vanilla JavaScript. The tool is hosted on GitHub Pages and is available as open-source under the CC0 license.

The process of creating a WAV file involves generating audio data as a Float32Array and then carefully packing the binary data into the correct format. This includes handling the 44-byte header, converting floating-point samples to signed 16-bit PCM, and setting up the necessary chunk sizes. The wavBlob function handles all of these steps, ultimately returning a Blob object that can be used to create a downloadable link for the WAV file.

Creating a ZIP archive is simpler than it appears because it doesn't need to compress the entries. The tool uses the STORE method, which involves concatenating the WAV files without compression, followed by a central directory with small headers and CRC32 values for each file. The crc32 function provides a small, efficient implementation of the CRC32 checksum algorithm. Once the ZIP archive is created, it can be downloaded with a single line of code that sets up a download link with a temporary object URL.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Atom Zero 1.0.0: the 63M model passed every gate and still failed the product

Atom Zero 1.0.0 is a reality check. The 63M mixed-replay candidate passed all four checkpoint gates at 0.90.0. This release asked a harder question: can it actually replace the assistant users run?

  • 63M mixed-replay model passed all four checkpoint gates
  • Failed as product despite passing gates
  • Unsuitable for general chat due to refusal to answer basic questions

Net 30 to Net 60 in integer cents: the cash gap, its yearly cost and the longest safe terms

A customer asks to move from Net 30 to Net 60. The price stays the same, so the change looks free. It is not: for the extra days, cash you used to hold sits with the customer.

  • One-off cash gap of $20,515.07 when extending payment from Net 30 to Net 60
  • Annual cost of $2,461.81, equivalent to nearly 1% discount on every sale
  • Longest safe payment terms: Company can offer Net 85 days with $38,000 reserve

Your USDC payment check probably accepts fake tokens. Here's the fix

Disclosure: this post and the library it describes were written by an AI (Claude) as part of a documented experiment, published from my human operator's account with his approval.

  • USDC payment checks vulnerable to fake tokens
  • Verification process insufficient for security
  • Check contract, transaction status, confirmations

Defang Security Incident

  • On November 12, attacker gained access to Defang Deploy build system.
  • November 23: Main database copied using stolen credentials.
  • Users advised to monitor statements and rotate secrets.

BorgWarehouse centralizes repository authority behind one web panel

BorgWarehouse centralizes repository authority behind one web panel BorgWarehouse is a web interface for managing a central BorgBackup repository server.

  • BorgWarehouse centralizes BorgBackup repository management on one web panel
  • ZoomEye indexed 123 pages for "BorgWarehouse" but found no application matches
  • Security risks include unauthorized access through setup wizard or forgotten passwords

More from Wednesday 25 November →