Repository navigation
Feature/wav bext ixml - #1323
Merged
Merged
Conversation
Read, write, and remove Broadcast Audio Extension (BEXT, EBU Tech 3285) and iXML metadata chunks in WAV files. BEXT is widely used in broadcast and professional audio for originator, description, time reference, and loudness metadata. iXML is used by field recorders and DAWs for scene, take, and track metadata. The raw chunk data is exposed as public members on RIFF::WAV::File (bextTag as ByteVector, iXMLTag as String) with hasBEXTTag() and hasiXMLTag() query methods. Chunks are read during file open and written/removed during save() based on whether the members are populated or cleared.
Add four tests covering round-trip read/write/remove of BEXT and iXML chunks in WAV files, both standalone and with ID3v2/INFO tags present. Co-Authored-By: Claude <[email protected]>
Move iXMLTag and bextTag from public data members on RIFF::WAV::File to the private FilePrivate class, exposing them through getter/setter methods (iXMLData/setiXMLData, BEXTData/setBEXTData). This preserves the class size invariant checked by TestSizes and follows TagLib's established encapsulation pattern. Co-Authored-By: Claude <[email protected]>
ufleisch
force-pushed
the
feature/wav-bext-ixml
branch
from
April 4, 2026 06:09
02b4006 to
d2f2924
Compare
Contributor
|
Thanks for all your work! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi,
This is arguably out of scope for taglib (feel free to pass on it), but again, this is something I needed and in the context of what I'm doing, taglib is the most logical place to keep the raw chunk access. iXML is straightforward, but I didn't put the BEXT chunk parsing into taglib, just access. I am handling the bext parse in my own framework a bit higher up. I'm working exclusively in SPM myself, so these changes are carefully remerged into taglib. The implementation/swift bridges can be seen here: https://github.com/ryanfrancesconi/spfk-metadata
Cheers,
Ryan