search for: flac__stream_encoder_set_verify

Displaying 6 results from an estimated 6 matches for "flac__stream_encoder_set_verify".

2014 Aug 14
1
Encoder example for 24-bit files
...ples = (((((((unsigned)buffer[43] << 8) | buffer[42]) << 8) | buffer[41]) << 8) | buffer[40]) / (channels * bps/8); /* allocate the encoder */ if((encoder = FLAC__stream_encoder_new()) == NULL) { @@ -89,7 +95,12 @@ int main(int argc, char *argv[]) return 1; } - ok &= FLAC__stream_encoder_set_verify(encoder, true); + if (bps == 16) { + /* TODO: Understand why verify doesn't work for 24bps - fails with + * FLAC__STREAM_ENCODER_VERIFY_MISMATCH_IN_AUDIO_DATA when calling + * FLAC__stream_encoder_process_interleaved().*/ + ok &= FLAC__stream_encoder_set_verify(encoder, true); + } ok...
2010 Feb 08
0
Use FLAC__stream_encoder_init_FILE instead of FLAC__stream_encoder_init_file
...> printf(_T("ERROR: allocating encoder")); > > return; > > } > > >> FLAC__stream_encoder_set_channels ( encoder, 2 ); > > FLAC__stream_encoder_set_bits_per_sample ( encoder, 16) ; > > FLAC__stream_encoder_set_sample_rate ( encoder, 44100 ); > > FLAC__stream_encoder_set_verify( encoder, FALSE ); > > FLAC__stream_encoder_set_blocksize( encoder, 0 ); > > FLAC__stream_encoder_set_compression_level( encoder, 5); > > >> >> FLAC__StreamEncoderInitStatus InitStatus; > > InitStatus=FLAC__stream_encoder_init_file( encoder, FullFileName, NULL, &...
2007 Jan 16
3
Help upgrading to 1.1.3 (MD5 sum issues, album art corrupts files)
...ange significantly from my usage of the 1.1.2 APIs yet things don't work like they did previously. My first issue is this: files generated by my application are reported as having "ERROR, MD5 signature mismatch" when tested with flac -t. I am at a loss as to why! When I set FLAC__stream_encoder_set_verify to true no errors are reported during the encode. Has anyone seen anything like this? The source for my encoder may be viewed at http://macaudiox.svn.sourceforge.net/viewvc/ macaudiox/trunk/Encoders/FLACEncoder.m?view=markup if anyone is curious. The second issue is likely more serious. Wh...
2014 Aug 14
6
Encoder example for 24-bit files
Hi, In the last days I've been taking as reference the example found in examples/c/encode/file/main.c. With it I've been able to encode a 2ch, 16 bps, 44100 sample rate input WAV file to a FLAC file. Now I've been trying to modify this example to encode a 2ch, 24 bps, 96000 sample rate WAV file. I have to say I'm a bit lost on how I should read the input file in this case, and
2007 Jan 17
0
Help upgrading to 1.1.3 (MD5 sum issues, album art corrupts files)
...ge of the 1.1.2 APIs yet > things don't work like they did previously. > > My first issue is this: files generated by my application are > reported as having "ERROR, MD5 signature mismatch" when tested with > flac -t. I am at a loss as to why! When I set > FLAC__stream_encoder_set_verify to true no errors are reported during > the encode. Has anyone seen anything like this? The source for my > encoder may be viewed at http://macaudiox.svn.sourceforge.net/viewvc/ > macaudiox/trunk/Encoders/FLACEncoder.m?view=markup if anyone is > curious. I took a quick look and it...
2008 May 19
1
Memory leaks due to Metadata object vorbis comment API ???
...uffer[41]) << 8) | buffer[40]) / 4; > > /* allocate the encoder */ > if((encoder = FLAC__stream_encoder_new()) == NULL) { > fprintf(stderr, "ERROR: allocating encoder\n"); > fclose(fin); > return 1; > } > > ok &= FLAC__stream_encoder_set_verify(encoder, true); > ok &= FLAC__stream_encoder_set_compression_level(encoder, 5); > ok &= FLAC__stream_encoder_set_channels(encoder, channels); > ok &= FLAC__stream_encoder_set_bits_per_sample(encoder, bps); > ok &= FLAC__stream_encoder_set_sample_rate(enco...