Displaying 1 result from an estimated 1 matches for "formatdata".
Did you mean:
format_data
2006 Dec 12
1
Setting compression level
...problem with setting compression level since 1.1.3
releases.
I'm using :
FE = FLAC__stream_encoder_new();
FLAC__stream_encoder_set_channels( FE, channels);
FLAC__stream_encoder_set_bits_per_sample( FE, bitsample);
FLAC__stream_encoder_set_sample_rate( FE, samplerate);
unsigned int level;
if (formatdatalen>0)
level = *(char*)(formatdata);
else
level = 7;
if (level>=0 && level<=8)
if (!FLAC__stream_encoder_set_compression_level( FE, level))
{
return -1;
}
if (FLAC__stream_encoder_init_stream( FE, WriteCallback, SeekCallback,
TellCallback, NULL, destination) != FLAC__...