Displaying 2 results from an estimated 2 matches for "flac__max_bits_per_sampl".
Did you mean:
flac__max_bits_per_sample
2018 Mar 22
2
Crash when writing 32bit flac files, am I doing something wrong ?
Hello,
I manage to successfully write 8, 16 and 24 bit, all stereo, FLAC files.
But when I try to write 32 bit FLACs my program crashes.
*FLAC__stream_encoder_set_bits_per_sample *is called to match the desired
bit depth (8, 16, 24, 32)
It's the same code for all bit depths, i provide a fixed-size signed int
buffer to the lib (size=16384), with values with appropriate ranges for
each bit
2018 Mar 24
0
Crash when writing 32bit flac files, am I doing something wrong ?
...o do for writing 32 bit FLACs, it seems it
> should be supported. Maybe I am missing something ?
AFAIK: while FLAC format itself supports 32-bit PCM, the official
encoder doesn't support it.
from include/FLAC/format.h:
/** The maximum sample resolution permitted by the format. */
#define FLAC__MAX_BITS_PER_SAMPLE (32u)
/** The maximum sample resolution permitted by libFLAC.
*
* \warning
* FLAC__MAX_BITS_PER_SAMPLE is the limit of the FLAC format. However,
* the reference encoder/decoder is currently limited to 24 bits because
* of prevalent 32-bit math, so make sure and use this value when
* approp...