From ac59b7094d518aaa2e381ebe07c0364ae60debe2 Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Mon, 7 Jul 2025 10:15:27 -0700 Subject: [PATCH] Don't update node version here --- packages/winamp-eqf/README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/winamp-eqf/README.md b/packages/winamp-eqf/README.md index e215b615..58e7e27b 100644 --- a/packages/winamp-eqf/README.md +++ b/packages/winamp-eqf/README.md @@ -11,7 +11,7 @@ npm install --save winamp-eqf ## Usage ```typescript -import { parser, creator, EqfData, CreateEqfData } from 'winamp-eqf'; +import { parser, creator, EqfData, CreateEqfData } from "winamp-eqf"; // ... Get your .eqf or .q1 file as an ArrayBuffer const eqf: EqfData = parser(eqfArrayBuffer); @@ -19,7 +19,7 @@ const eqf: EqfData = parser(eqfArrayBuffer); const eqfArrayBuffer: ArrayBuffer = creator(eqf); ``` -This package is an ES module and requires Node.js 22+ or a modern bundler that supports ES modules. +This package is an ES module and requires Node.js 14+ or a modern bundler that supports ES modules. ## API @@ -58,8 +58,6 @@ This package is written in TypeScript and provides full type definitions. `eqfObject` is an object with the same shape as that returned by `parser()`. - - ## Source Material Starting with this spec found here: : @@ -87,4 +85,4 @@ And then via direct message: > Will do it here as I can type a bit more, but the only obvious thing wrong with the link is the signature assumption as it's not guaranteed to be 'entry1' As you can have multiple eq blocks in a file. -> If you've looked at winamp.q1 you should see multiple presets in that file which follow one after each other so the file signature (winamp.q1 or a specific *.eqf file) is "Winamp EQ library file v1.1\x1A!--" (pulled that out from the disassembler) it's then a 257 byte buffer (256 + null character to terminate correctly) then the 10 byte block relating to the eq sliders (need to double-check the range base) followed by the 1 byte for the preamp slider then if there's more presets in the file, they follow on immediately after with the name block looking at the preamp slider, -12dB = 0x3F, 0dB = 0x1F, 12dB = 0 (so a 0-63 range) that seems to be the same for the other sliders (and matches 1:1 with the sdk details) and I think that's it :) in the winamp.q1 file, the 'default' entry is either a flat preset or what's been saved after customisation (in-case you're wanting to mirror the native behaviour via the preset -> save -> default action) \ No newline at end of file +> If you've looked at winamp.q1 you should see multiple presets in that file which follow one after each other so the file signature (winamp.q1 or a specific \*.eqf file) is "Winamp EQ library file v1.1\x1A!--" (pulled that out from the disassembler) it's then a 257 byte buffer (256 + null character to terminate correctly) then the 10 byte block relating to the eq sliders (need to double-check the range base) followed by the 1 byte for the preamp slider then if there's more presets in the file, they follow on immediately after with the name block looking at the preamp slider, -12dB = 0x3F, 0dB = 0x1F, 12dB = 0 (so a 0-63 range) that seems to be the same for the other sliders (and matches 1:1 with the sdk details) and I think that's it :) in the winamp.q1 file, the 'default' entry is either a flat preset or what's been saved after customisation (in-case you're wanting to mirror the native behaviour via the preset -> save -> default action)