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; }
static int IORead (void *opaque, uint8_t *buf, int buf_size) { IDataReceiver* datrec = (IDataReceiver*)opaque; int ret = datrec->Read(buf, buf_size); return ret; }