Jose Pablo Carballo <[email protected]> wrote: > - channels = 2; > - bps = 16; > + channels = ((unsigned)buffer[23] << 8) | buffer[22]; > + bps = ((unsigned)buffer[35] << 8) | buffer[34]; > total_samples = (((((((unsigned)buffer[43] << 8) | buffer[42]) << 8) > | buffer[41]) << 8) | buffer[40]) / 4; >
I suspect that the expression for total_samples should be not (.....) / 4 but (.....) / (channels * bps/8) _______________________________________________ flac-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/flac-dev
