Ejemplo n.º 1
0
static int          IORead                           (void *opaque, uint8_t *buf, int buf_size)
{
    IDataReceiver* datrec = (IDataReceiver*)opaque;
    int ret = datrec->Read(buf, buf_size);
/*    if(datrec->IsAudio())
    {
    	FILE * fp;
    	fp = fopen("/media/hdd/IORead.bin", "ab");
    	fwrite(buf,sizeof(uint8_t), sizeof(uint8_t)*ret,fp);
    	fclose(fp);
    }
    */
    return ret;
}
Ejemplo n.º 2
0
static int IORead (void *opaque, uint8_t *buf, int buf_size)
{
    IDataReceiver* datrec = (IDataReceiver*)opaque;
    int ret = datrec->Read(buf, buf_size);
    return ret;
}