A basic audio buffer concatenator that works with Rollup. Version 1.0.0 (last released 2020) is stable but not actively maintained. It combines multiple AudioBuffers into one, with optional stereo conversion. Unlike more complex audio processing libraries, this package is minimal and focused solely on concatenation, making it suitable for simple audio merging tasks in bundlers like Rollup.
npm install concat-audio-buffersVerified import paths — ran on the pinned version, not inferred.
Shows how to create two AudioBuffers, concatenate them with stereo conversion, and play the result as a WAV blob.
Wrap the call in a Promise if async usage is needed: new Promise((resolve, reject) => concatAudioBuffers(buffers, channels, (err, result) => err ? reject(err) : resolve(result)));
Consider using modern alternatives like 'audio-buffer-utils' or implement your own with AudioBuffer.copyToChannel
Validate buffers array and channel number before calling
Check if error is truthy before using combinedBuffer
Run 'npm install concat-audio-buffers' and ensure your bundler supports ESM imports
Change to 'import concatAudioBuffers from 'concat-audio-buffers''
Ensure buffers is an array of AudioBuffer objects
No dependency data recorded yet.