search for: flac__stream_encoder_init

Displaying 14 results from an estimated 14 matches for "flac__stream_encoder_init".

2014 Sep 26
2
Disk fragmentation
...FLAC API that have access to encoder->private_->file and can call setvbuf: FLAC_API FLAC__bool FLAC__stream_encoder_set_buffer_size(FLAC__StreamEncoder *encoder, unsigned size); 2) Rewrite EncoderSession_init_encoder() in flac/encode.c so that it opens the file, calls setvbuf and then uses FLAC__stream_encoder_init[_ogg]_stream() instead of FLAC__stream_encoder_init[_ogg]_file(). It's more difficult, but doesn't require API change.
2006 Jun 17
3
Assistance with an encoding plugin
..._file_descriptor; encoder = FLAC__stream_encoder_new(); FLAC__stream_encoder_set_write_callback(plugin->encoder, write_callback); FLAC__stream_encoder_set_metadata_callback(plugin->encoder, metadata_callback); FLAC__stream_encoder_set_client_data(plugin->encoder, output_file_descriptor); FLAC__stream_encoder_init(plugin->encoder); while(/* audio data left to extract */) { /* audio buffer is an int16_t buffer that paranoia dumps interleaved audio into */ FLAC__stream_encoder_process_interleaved( encoder, audio_buffer,...
2007 Mar 13
2
flac fails encoding 88.2
...C__stream_encoder_set_write_callback (encoder, &encodeWriteCallback); e = FLAC__stream_encoder_set_metadata_callback (encoder, &encodeMetadataCallback); e = FLAC__stream_encoder_set_client_data (encoder, (void*)this); And everything goes ok. But then when I go: bool ok = (FLAC__stream_encoder_init (encoder) == FLAC__STREAM_ENCODER_OK); It fails if sampleRate is 88200, but ti works if the sampleRate is 44100. Any idea what I'm doing wrong? I'm not sure what version of flac I am using, it is fairly old, but I don't see any version numbers in the headers. Is this a known bug that...
2014 Sep 24
2
Disk fragmentation
Miroslav Lichvar wrote: > Hm, does this mean that every process encoding FLAC files will now > need extra 10MB of memory? Is that ok for small devices with limited > memory? What small device do you have in mind? The smallest device I could possibly imagine *encoding* FLAC on is Rasberry Pi which has 512Meg of RAM. If you really are concerned about this (and knowing that it has little
2014 Sep 27
0
Disk fragmentation
...vbuf: > > FLAC_API FLAC__bool FLAC__stream_encoder_set_buffer_size(FLAC__StreamEncoder *encoder, unsigned size); Not real keen on changing the API just for this issue. > 2) Rewrite EncoderSession_init_encoder() in flac/encode.c so that it > opens the file, calls setvbuf and then uses FLAC__stream_encoder_init[_ogg]_stream() > instead of FLAC__stream_encoder_init[_ogg]_file(). It's more difficult, > but doesn't require API change. That is a solution, but I'm still undecied on whether we actually need to do it outside of libFLAC/stream_encoder.c. IN fact, doing it there has the advantag...
2014 Nov 23
2
deprecated function question
Greets all, Is there a list of functions that have been removed from flac? I am trying to compile xmcd, which is admittedly pretty old code, and it's not finding: FLAC__stream_encoder_set_write_callback FLAC__stream_encoder_set_seek_callback FLAC__stream_encoder_set_client_data FLAC__stream_encoder_init grepping through the flac headers these aren't there so I'm assuming they've been removed. The online changelog doesn't say anything about deprecated/removed functions. The only one I've found reference to is the removal of FLAC__seekable*, is there any documentation about any...
2004 Sep 10
3
1.0 source candidate
...adata ( decoder=0x60000000002beb20) at stream_decoder.c:427 #3 0x4000000000010320 in write_callback (encoder=0x60000000002b8290, buffer=0x60000000002f9df0 "fLaC", bytes=64, samples=0, current_frame=0, client_data=0x80000fffffffa5c0) at encode.c:964 #4 0x200000000012bc60 in FLAC__stream_encoder_init ( encoder=0x60000000002b8290) at stream_encoder.c:467 #5 0x400000000000d840 in init_encoder (lax=0, do_mid_side=0, loose_mid_side=0, do_exhaustive_model_search=0, do_escape_coding=0, do_qlp_coeff_prec_search=0, min_residual_partition_order=3, max_residual_partition_order=3, rice...
2004 Sep 10
6
libFLAC docs
> > For those of you using CVS, I have added a libFLAC section to the > > documentation page. I'm not sure how detailed to make it but I > > think it's a good start. Let me know if there's anything else > > you'd like to have in there. > > > > >
2004 Sep 10
0
Sound Font FLAC
...chunk of a sound font (have yet to do any meta data block for gzip compressed non-audio data, there will probably be 2 METADATA blocks to simplify things, one for before and one for after the audio chunk). All seems to function alright. I do have a few comments on the design of the libFLAC API. The FLAC__stream_encoder_init() function call has quite a lot of parameters. Do you forsee a reason to add or modify any of these in the future? I would think that creating an init structure to pass to this function would make sense. Or even better would be to have some functions for setting parameters in the FLAC encoder insta...
2004 Sep 10
0
1.0 source candidate
...002beb20) at stream_decoder.c:427 > #3 0x4000000000010320 in write_callback (encoder=0x60000000002b8290, > > buffer=0x60000000002f9df0 "fLaC", bytes=64, samples=0, > current_frame=0, > client_data=0x80000fffffffa5c0) at encode.c:964 > #4 0x200000000012bc60 in FLAC__stream_encoder_init ( > encoder=0x60000000002b8290) at stream_encoder.c:467 > #5 0x400000000000d840 in init_encoder (lax=0, do_mid_side=0, > loose_mid_side=0, do_exhaustive_model_search=0, > do_escape_coding=0, > do_qlp_coeff_prec_search=0, min_residual_partition_order=3, > max_re...
2007 Mar 14
0
flac fails encoding 88.2
...p;encodeWriteCallback); > e = FLAC__stream_encoder_set_metadata_callback (encoder, > &encodeMetadataCallback); > e = FLAC__stream_encoder_set_client_data (encoder, > (void*)this); > > And everything goes ok. > > But then when I go: > > bool ok = (FLAC__stream_encoder_init (encoder) == > FLAC__STREAM_ENCODER_OK); > > It fails if sampleRate is 88200, but ti works if the sampleRate is > 44100. > > Any idea what I'm doing wrong? > > I'm not sure what version of flac I am using, it is fairly old, but I > don't see any version num...
2006 Jun 19
0
Assistance with an encoding plugin
...FLAC__stream_encoder_new(); > >FLAC__stream_encoder_set_write_callback(plugin->encoder, write_callback); >FLAC__stream_encoder_set_metadata_callback(plugin->encoder, >metadata_callback); >FLAC__stream_encoder_set_client_data(plugin->encoder, >output_file_descriptor); >FLAC__stream_encoder_init(plugin->encoder); > >while(/* audio data left to extract */) >{ > /* audio buffer is an int16_t buffer that paranoia dumps interleaved >audio into */ > FLAC__stream_encoder_process_interleaved( encoder, > aud...
2004 Sep 10
2
1.0 source candidate
On Fri, Jul 20, 2001 at 10:51:11PM -0400, Matt Zimmerman wrote: > This version seems to work at least partially on ia64. I am able to encode my > usual test WAV file now, but I still get a segfault during the self-tests. Interestingly enough, when I recompiled with --enable-debug to get a stack trace, it worked. Any ideas how to track down the problem? -- - mdz
2004 Sep 10
2
Binary compatibility (was Re: Sound Font FLAC)
...t (have yet > to do any meta data block for gzip compressed non-audio data, there will > probably be 2 METADATA blocks to simplify things, one for before and one for > after the audio chunk). All seems to function alright. I do have a few > comments on the design of the libFLAC API. The FLAC__stream_encoder_init() > function call has quite a lot of parameters. Do you forsee a reason to add > or modify any of these in the future? I would think that creating an init > structure to pass to this function would make sense. Or even better would be > to have some functions for setting parameters in t...