search for: writecallback

Displaying 3 results from an estimated 3 matches for "writecallback".

Did you mean: write_callback
2004 Sep 10
1
Unexpected writeCallback() calls
Hello! I've recently written a FLAC input plugin which uses the seekable stream decoder API of libFLAC 1.02. It works so far, but one thing is pretty annoying and should be changed in future libFLAC versions, IMHO: The writeCallback is not only called after functions which do decoding (like process_whole_stream(), process_one_frame() or process_remaining_frames()), ie. where one expects that new data arrives. Instead, also functions like seek_absolute() can create decoded data. I think that generating new data should be restri...
2006 Dec 12
1
Setting compression level
...der_set_sample_rate( FE, samplerate); unsigned int level; if (formatdatalen>0) level = *(char*)(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,...
2004 Sep 10
0
http streaming in the xmms plugin
...e "configure.h" #include "wrap_id3.h" #include "charset.h" + #include "http.h" #ifdef min #undef min *************** *** 68,73 **** --- 72,106 ---- DitherContext dither_context; } file_info_struct; + typedef FLAC__StreamDecoderWriteStatus (*WriteCallback) (const void *decoder, const FLAC__Frame *frame, const FLAC__int32 * const buffer[], void *client_data); + typedef void (*MetadataCallback) (const void *decoder, const FLAC__StreamMetadata *metadata, void *client_data); + typedef void (*ErrorCallback) (const void *decoder, FLAC__StreamDecoderErrorS...