Expose NRG sessions, tracks and raw CD-DA extraction - #358
Merged
Merged
Conversation
Hawkynt
force-pushed
the
feature/nrg-track-reader
branch
5 times, most recently
from
September 19, 2026 01:49
488b11a to
ed85291
Compare
Hawkynt
force-pushed
the
feature/nrg-track-reader
branch
from
September 19, 2026 01:52
ed85291 to
fcccd1d
Compare
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.
What changed
NrgReaderinstead of collapsing the container to one ISO trackCUEX+DAOX/DAOImetadata and TAOETN2/ETNFtracks, including track numbers, mode, sector geometry, pregap/data byte ranges, index LBAs, ADR/control, MCN and ISRCCDTXpack bytes.nrg/session-XX/track-YY/iso.binarchive entries below.nrg/session-XX/tracksExtractTrack/CopyTrackToso large tracks can be copied without transcoding; 2352/2448-byte CD-DA sector representations are preserved exactlyCompatibility
Existing single-ISO NRG callers still see their ISO files at the archive root. The richer topology is additive through
Sessions/Tracks; synthetic raw-track entries only appear for content not represented by a readable ISO tree.References / licensing
NRG remains proprietary with no public normative Nero specification. The implementation uses reverse-engineered public format facts and behavioral oracles only. CDEmu/libMirage is GPL and is not copied or translated; this remains a clean-room managed C# implementation. The DAO/CUE layouts were cross-checked against independently documented NRG structures and public CD image tooling.
Tests
Added coverage for mixed-mode topology, MCN/ISRC/CD-TEXT, raw CD-DA extraction, 2448-byte subchannel preservation, pregap streaming, multiple ISO sessions, non-ISO raw data tracks, and maintenance refusal for a raw single-track data image.