Displaying 3 results from an estimated 3 matches for "decoder_init".
2004 Sep 10
1
seek problem
..._state() properly returns END_OF_STREAM. Any ideas
whats wrong?
BTW - why does stream_decoder_finish() call the function
seekable_stream_decoder_set_defaults_() which clears all
callback pointers? In flac 1.02, I had to set the callback
pointers only once, but in 1.03 I have to set them after every
decoder_init()/decoder_finish() pair. Is this intentional or
a bug in 1.03?
BTW2 - I still think that it would be better if
seekable_stream_decoder_seek_absolute() wouldn't call
the write callback.
And finally, a function like
seekable_stream_decoder_process_frames(decoder, numframes)
would be useful, IMHO...
2005 Jun 23
1
Speex and DS
...ut);
}
fclose(fout);
speex_encoder_destroy(enc_state);
/*Destroy the bit-packing struct*/
speex_bits_destroy(&bitsenc);
/* decoding */
FILE* fin = fopen("_ee.raw","r"); //get the file
char cbitsdec[200];
short out[FRAME_SIZE];
float output[FRAME_SIZE];
dec_state = speex_decoder_init(&speex_nb_mode);
speex_bits_init(&bitsdec);
char* buffer2 = new char[size]; // the output buffer
char* pbuffer2 = buffer2; // pointer to the output buffer
while (1)
{
//Read the size encoded by sampleenc, this part will likely be
//different in your application
fread(&nbBytesdec, size...
2004 Sep 10
0
http streaming in the xmms plugin
...__bool (*set_write_callback) (void *decoder, WriteCallback value);
+ FLAC__bool (*set_metadata_callback) (void *decoder, MetadataCallback value);
+ FLAC__bool (*set_error_callback) (void *decoder, ErrorCallback value);
+ FLAC__bool (*set_client_data) (void *decoder, void *value);
+ FLAC__bool (*decoder_init) (void *decoder);
+ void (*safe_decoder_finish) (void *decoder);
+ void (*safe_decoder_delete) (void *decoder);
+ FLAC__bool (*process_until_end_of_metadata) (void *decoder);
+ FLAC__bool (*process_single) (void *decoder);
+ FLAC__bool (*is_eof) (void *decoder);
+ } decoder_funcs_t;
+
+ #defi...