Skip to content

Add 32 bit handling for flac - #6638

Closed
LWinterberg wants to merge 1 commit into
audacity:masterfrom
LWinterberg:32bitflac
Closed

LWinterberg wants to merge 1 commit into
audacity:masterfrom
LWinterberg:32bitflac

Conversation

@LWinterberg

@LWinterberg LWinterberg commented Jun 7, 2024 •

Copy link
Copy Markdown
Member

Resolves: #6606

Well, it doesn't yet. I see that in line 171 following, 32 bit is handled while in the bit I changed here it wasn't, but when I try the file provided in the bug, it doesn't quite work and runs into an assert violation in WaveCacheSampleBlock::Summary WaveCacheSampleBlock::GetSummary for assert(summary.Min <= summary.Max); (because min is +inf while max is -inf). So there's something here I'm not understanding.

Edit: One of the issues is that 32-bit int is not 32-bit float.

@LWinterberg
LWinterberg deleted the 32bitflac branch July 17, 2024 13:59
kdm9 added a commit to gekkonid/audacity that referenced this pull request Jul 23, 2025
Ressurects audacity#6638, to solve audacity#6606.

We handle this by promoting 24/32bit FLAC files to floating point
tracks.

I believe this fixes audacity#6606 for me, though I am still testing on more
sample data, and comparing to external conversion with ffmpeg to check.
@kdm9 kdm9 mentioned this pull request Jul 23, 2025
6 tasks done
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.

Error on opening 32-bit FLAC

1 participant