Skip to content

Support 'JUNK' data block in RIFF specification.#16

Open
zhi-verse wants to merge 1 commit intoTooTallNate:masterfrom
zhi-verse:master
Open

Support 'JUNK' data block in RIFF specification.#16
zhi-verse wants to merge 1 commit intoTooTallNate:masterfrom
zhi-verse:master

Conversation

@zhi-verse
Copy link
Copy Markdown

Some audio authoring tools still produce .wav files with 'JUNK' sections (a relic from CD-ROM days).


Reader.prototype._onJUNK = function (chunk) {
var junkSize = chunk['readUInt32' + this.endianness](0);
this._bytes(junkSize, function() {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you switch this to _skipBytes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants