search for: tracklength

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

Did you mean: ticklength
2011 Sep 28
0
FLAC::Encoder::Stream == "FLAC__STREAM_ENCODER_VERIFY_MISMATCH_IN_AUDIO_DATA"
...er enc; bool ok = true; unsigned int sample_size = 4; //2 * (16 / 8); 2 channels * (16 bits / 8) bytes unsigned int samples_per_sector = disc.getBytesPerSector(trackNum) / sample_size / 2 /*channels*/; unsigned int total_samples = trackLength * 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_leve...