{"_id":"@audio/aiff-decode","_rev":"2-ac86a4dc4140ee7918ce1d70cce14eff","name":"@audio/aiff-decode","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@audio/aiff-decode","version":"1.0.0","keywords":["aiff","aifc","audio","decode","decoder","pcm"],"author":{"name":"audiojs"},"license":"MIT","_id":"@audio/aiff-decode@1.0.0","maintainers":[{"name":"jamen","email":"jamenmarz@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"}],"homepage":"https://github.com/audiojs/aiff-decode#readme","bugs":{"url":"https://github.com/audiojs/aiff-decode/issues"},"dist":{"shasum":"2851fdfdf0d87b71b11fb12c1ea2a84292bc668b","tarball":"https://registry.npmjs.org/@audio/aiff-decode/-/aiff-decode-1.0.0.tgz","fileCount":5,"integrity":"sha512-p3lkQIJ0qpGXpK/q7l+h6eK8zQZ5ohk4UO52w4tHGSxljXui7OEIqtmYNqDzXUVtkuDuW2yBC8zkomv8kt1IJQ==","signatures":[{"sig":"MEUCIBxICU5voiLnixusLYwpn9686JHlgDINGqGsLA/eJE8hAiEA4aYEAwKa+a0glZCuBhUZ0LMFlhA3II6T9aKHKq5IxPk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19362},"main":"aiff-decode.js","type":"module","types":"aiff-decode.d.ts","engines":{"node":">=16"},"exports":{".":"./aiff-decode.js","./package.json":"./package.json"},"gitHead":"09f21dc52f9a55bb7d618a302881b0d41994e524","scripts":{"test":"node test.js"},"_npmUser":{"name":"dy","email":"df.creative@gmail.com"},"repository":{"url":"git+https://github.com/audiojs/aiff-decode.git","type":"git"},"_npmVersion":"11.11.0","description":"Decode AIFF/AIFF-C audio to PCM samples","directories":{},"_nodeVersion":"25.8.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/aiff-decode_1.0.0_1773602596034_0.756353658960804","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2026-03-15T19:23:15.983Z","modified":"2026-04-04T03:30:03.235Z","1.0.0":"2026-03-15T19:23:16.185Z"},"bugs":{"url":"https://github.com/audiojs/aiff-decode/issues"},"author":{"name":"audiojs"},"license":"MIT","homepage":"https://github.com/audiojs/aiff-decode#readme","keywords":["aiff","aifc","audio","decode","decoder","pcm"],"repository":{"url":"git+https://github.com/audiojs/aiff-decode.git","type":"git"},"description":"Decode AIFF/AIFF-C audio to PCM samples","maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"dy","email":"df.creative@gmail.com"},{"name":"jamen","email":"jamenmarz@gmail.com"}],"readme":"# aiff-decode\n\nDecode AIFF and AIFF-C audio to PCM float samples.<br>\nPart of [audio-decode](https://github.com/audiojs/audio-decode).\n\n## Install\n\n```\nnpm i @audio/aiff-decode\n```\n\n## Usage\n\n```js\nimport decode from '@audio/aiff-decode'\n\nlet { channelData, sampleRate } = await decode(aiffBuffer)\n// channelData: Float32Array[] (one per channel)\n// sampleRate: number\n```\n\n### Streaming\n\n```js\nimport { decoder } from '@audio/aiff-decode'\n\nlet dec = await decoder()\nlet result = dec.decode(chunk)\ndec.free()\n```\n\n## API\n\n### `decode(src): Promise<AudioData>`\n\nWhole-file decode. Accepts `Uint8Array` or `ArrayBuffer`.\n\n### `decoder(): Promise<AIFFDecoder>`\n\nCreates a decoder instance.\n\n- **`dec.decode(data)`** — decode chunk, returns `{ channelData, sampleRate }`\n- **`dec.flush()`** — flush (returns empty — AIFF is stateless)\n- **`dec.free()`** — release resources\n\n## Formats\n\n- AIFF — 8, 16, 24, 32-bit signed integer PCM (big-endian)\n- AIFF-C — `NONE`/`twos` (BE PCM), `sowt` (LE PCM), `fl32`/`fl64` (float), `alaw`, `ulaw`\n\n## License\n\nMIT — [krishnized](https://github.com/krishnized/license)\n","readmeFilename":"README.md"}