Skip to content

Feature/wav bext ixml - #1323

Merged
ufleisch merged 4 commits into
taglib:masterfrom
ryanfrancesconi:feature/wav-bext-ixml
Apr 4, 2026
Merged

ufleisch merged 4 commits into
taglib:masterfrom
ryanfrancesconi:feature/wav-bext-ixml

Conversation

@ryanfrancesconi

Copy link
Copy Markdown
Contributor

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

ryanfrancesconi and others added 3 commits April 4, 2026 08:03
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
ufleisch force-pushed the feature/wav-bext-ixml branch from 02b4006 to d2f2924 Compare April 4, 2026 06:09
@ufleisch

ufleisch commented Apr 4, 2026

Copy link
Copy Markdown
Contributor

Thanks for all your work!
One question: Wouldn't it be more consistent to name the "check methods" hasiXMLData() instead of hasiXMLTag() and hasBEXTData() instead of hasBEXTTag()?

@ufleisch
ufleisch merged commit abadbb6 into taglib:master Apr 4, 2026
4 checks passed
@ryanfrancesconi
ryanfrancesconi deleted the feature/wav-bext-ixml branch April 26, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants