search for: bytestocopy

Displaying 2 results from an estimated 2 matches for "bytestocopy".

Did you mean: bytes_to_copy
2004 Sep 10
2
Error initializing flac stream decoder.
I've cross-compiled flac for the armv4l processor (rio receiver), and i'm trying to start up a decode thread : #include <FLAC/stream_decoder.h> .... FLAC__StreamDecoder *flac = NULL; flac = FLAC__stream_decoder_new(); if (flac == NULL) { printf("[DECODE] Unable to initalize flac object\n");
2004 Sep 10
2
Error initializing flac stream decoder.
...Reza FLAC__StreamDecoderReadStatus rio_flac_read(const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], unsigned *bytes, void *client_data) { r_glue *g = (r_glue*) client_data; unsigned int bytesAvailable = rio_ringbuffer_datasize( g->readAhead ); unsigned int bytesToCopy = 0; char* inBuffer; if (g->decode_request == DECODE_STOP) return FLAC__STREAM_DECODER_READ_STATUS_ABORT; if (g->eof && bytesAvailable == 0) return FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM; g->decode_statu...