search for: fcompressionstrength

Displaying 1 result from an estimated 1 matches for "fcompressionstrength".

2011 Sep 28
0
FLAC::Encoder::Stream == "FLAC__STREAM_ENCODER_VERIFY_MISMATCH_IN_AUDIO_DATA"
...samples_per_sector; // compress ok &= enc.set_verify(true); ok &= enc.set_channels ( 2); // 2 channels ok &= enc.set_bits_per_sample( 16); // 16 bits ok &= enc.set_sample_rate (44100); // 44.100 Hz ok &= enc.set_compression_level((FCompressionStrength > 8) ? 8 : FCompressionStrength); ok &= enc.set_total_samples_estimate(total_samples); enc.setOutFile(&file); /* initialize encoder */ init_status = enc.init(); if( (!ok) || (init_status != FLAC__STREAM_ENCODER_INIT_STATUS_OK)) { return false; }...