/* /work/builds/gcc-linaro-4.7/tools/bin/x86_64-unknown-linux-gnu-gcc -O2 besttry.c */ #include typedef unsigned char uint8_t; typedef struct syncinfo_s { } syncinfo_t; static unsigned char buf[6144]; static syncinfo_t syncinfo; int output_spdif(uint8_t *data_start, uint8_t *data_end, int quiet) { int ret = 0, res; while(buffer_syncframe(&syncinfo, &data_start, data_end)) { res = output_play((short *)buf, 6144 / 2 / 2); ret = ret < 0 ? ret : res; bzero(buf,6144); } return ret; }