Displaying 2 results from an estimated 2 matches for "flac__file_decoder_end_of_file".
2005 Jan 20
0
When to terminate decoding process ?
...s are decoded, the last block only has
2220, so I assume this is really the end of the file:
Samples decoded: 2220, current time: 292290, bits per sample: 16
Obtaining the decoder states after decoding this last block still looks
like decoding should go on. Instead, I had expected to receive a
FLAC__FILE_DECODER_END_OF_FILE
<http://flac.sourceforge.net/api/group__flac__file__decoder.html#a36a5>
when calling FLAC::Decoder::File
<http://flac.sourceforge.net/api/classFLAC_1_1Decoder_1_1File.html>::get_state().
Instead I obtain this:
Status of decoder: FLAC__FILE_DECODER_OK
Status of seekable stream deco...
2004 Sep 10
0
http streaming in the xmms plugin
...quot;%s\"", errtitle, filename);
! } else {
! *title = NULL;
! }
}
if(length_in_msec)
*length_in_msec = -1;
***************
*** 354,364 ****
unsigned s;
s = sample_buffer_last_ - sample_buffer_first_;
! if(FLAC__file_decoder_get_state(decoder_) == FLAC__FILE_DECODER_END_OF_FILE) {
file_info_.eof = true;
break;
}
! else if(!FLAC__file_decoder_process_single(decoder_)) {
/*@@@ this should probably be a dialog */
fprintf(stderr, "libxmms-flac: READ ERROR processing frame\n");
file_info_.eof = true;
--- 449,459 ----...