search for: flac__stream_encoder_delete

Displaying 7 results from an estimated 7 matches for "flac__stream_encoder_delete".

2006 Jun 17
3
Assistance with an encoding plugin
...ranoia dumps interleaved audio into */ FLAC__stream_encoder_process_interleaved( encoder, audio_buffer, CD_FRAMESIZE_RAW / 4); } FLAC__stream_encoder_finish(encoder); FLAC__stream_encoder_delete(encoder); write_callback simply writes the encoded data out to a file stream, and metadata_callback isn't doing anything at the moment (one thing at a time :-) ). Now one thing that I see which may be causing my issue is the fact that paranoia is extracting to an int16_t buffer whereas the FL...
2006 Dec 12
1
Setting compression level
...har*)(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__STREAM_ENCODER_OK) { FLAC__stream_encoder_delete(FE); return -1; } and sending stream to encode .... I can set any compression level (default i have 7), but final FLAC file always have same size as source WAV file. FLAC is playable, but not compressed. Is there must be any additional settings ? Petr
2006 Jun 19
0
Assistance with an encoding plugin
...t; FLAC__stream_encoder_process_interleaved( encoder, > audio_buffer, > CD_FRAMESIZE_RAW / >4); > >} > > FLAC__stream_encoder_finish(encoder); > FLAC__stream_encoder_delete(encoder); > >write_callback simply writes the encoded data out to a file stream, and >metadata_callback isn't doing anything at the moment (one thing at a >time :-) ). > >Now one thing that I see which may be causing my issue is the fact that >paranoia is extracting to an i...
2011 Aug 11
1
Memory leak
...s of detected and suppressed errors, rerun with: -v ==30495== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 20 from 8) In this example I used FLAC::Encoder::File, but the same thing happens with FLAC::Encoder::Stream and, from reading the source, with the C API, as long as one does not call FLAC__stream_encoder_delete() and FLAC__stream_encoder_new() between finish()'ing and init()'ing a stream. The fix will have to be in init_stream_internal_() in src/libFLAC/stream_encoder.c:1007 (in libFLAC-1.2.1), where it should checked whether encoder->private_->verify.decoder == NULL before calling FLAC__st...
2013 Feb 07
6
Commonly getting FLAC__STREAM_ENCODER_VERIFY_MISMATCH_IN_AUDIO_DATA on valid audio
I'm using libflac on Windows to compress some audio samples. I'm building the library locally, using Visual Studio 2010. Each set of data is 2-5 MB and well formed PCM encoded data. I'm finding some very odd behavior. If I enable verify on the encode stream, I get a verify mismatch on most of my sample sets. Each set of samples returns this error at a different location in the stream,
2008 May 19
1
Memory leaks due to Metadata object vorbis comment API ???
...r, " state: %s\n", > FLAC__StreamEncoderStateString[FLAC__stream_encoder_get_state(encoder)]); > > /* now that encoding is finished, the metadata can be freed */ > FLAC__metadata_object_delete(metadata[0]); > FLAC__metadata_object_delete(metadata[1]); > FLAC__stream_encoder_delete(encoder); > > fclose(fin); > > return 0; > } > > void progress_callback(const FLAC__StreamEncoder *encoder, FLAC__uint64 > bytes_written, FLAC__uint64 samples_written, unsigned frames_written, > unsigned total_frames_estimate, void *client_data) > { > (v...
2012 May 05
5
[PATCH] Optionally, allow distros to use openssl for MD5 verification
...ed_rice_contents_extra[i]); encoder->protected_->state = FLAC__STREAM_ENCODER_UNINITIALIZED; - +#if defined(HAVE_OPENSSL) + if(encoder->protected_->do_md5) EVP_MD_CTX_init(&encoder->private_->md5context); +#endif return encoder; } @@ -602,6 +604,11 @@ FLAC_API void FLAC__stream_encoder_delete(FLAC__StreamEncoder *encoder) FLAC__format_entropy_coding_method_partitioned_rice_contents_clear(&encoder->private_->partitioned_rice_contents_extra[i]); FLAC__bitwriter_delete(encoder->private_->frame); +#if defined(HAVE_OPENSSL) + if(encoder->protected_->do_md5) {...