Displaying 1 result from an estimated 1 matches for "setoutfil".
Did you mean:
setoutfile
2011 Sep 28
0
FLAC::Encoder::Stream == "FLAC__STREAM_ENCODER_VERIFY_MISMATCH_IN_AUDIO_DATA"
...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;
}
/* read sectors from disc and feed to encoder */
for (unsigned int i = 0; i < trackLength; ++i) {
dis...