search for: bytesavail

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

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.
...gnize it. Is there any way to turn on verbose debugging messages from flac? Thanks, 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)...
2008 Oct 10
1
Creating a new connection type
Hello. I have an instrument, actually a step motor indexer that I want to drive from R. It uses an RS-232 connection. I already have a few C subroutines that I access from R but I would like to be able use R's connection related functions - readLines, writeLines, cat, read.table, etc - directly. Does any one have any suggestions on how a I should proceed to create a new connection type? Is it