Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FLAC: Support channel mask in Vorbis Comments #447

Open
Serial-ATA opened this issue Aug 30, 2024 · 0 comments
Open

FLAC: Support channel mask in Vorbis Comments #447

Serial-ATA opened this issue Aug 30, 2024 · 0 comments
Labels
enhancement New feature or request low priority Something that is at least planned, but likely will not be worked on soon.

Comments

@Serial-ATA
Copy link
Owner

Source: https://www.ietf.org/archive/id/draft-ietf-cellar-flac-14.html#name-channel-mask

Apparently there's a standardized Vorbis Comments field for the channel mask in FLAC spec now?

Is anyone using it? Probably not. Will it hurt to update the FlacProperties if we encounter it? Also probably not. Also in the case that this is being used, we don't want to overwrite it when writing/stripping tags.

The field is WAVEFORMATEXTENSIBLE_CHANNEL_MASK, which contains the hex-encoded channel mask.

From the spec:

Following are three examples:

  • If a file has a single channel, being a LFE channel, the Vorbis comment field is WAVEFORMATEXTENSIBLE_CHANNEL_MASK=0x8.
  • If a file has four channels, being front left, front right, top front left, and top front right, the Vorbis comment field is WAVEFORMATEXTENSIBLE_CHANNEL_MASK=0x5003.
  • If an input has four channels, being back center, top front center, front center, and top rear center in that order, they have to be reordered to front center, back center, top front center and top rear center. The Vorbis comment field added is WAVEFORMATEXTENSIBLE_CHANNEL_MASK=0x12104.
@Serial-ATA Serial-ATA added enhancement New feature or request low priority Something that is at least planned, but likely will not be worked on soon. labels Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority Something that is at least planned, but likely will not be worked on soon.
Projects
None yet
Development

No branches or pull requests

1 participant