fixed bug in buffer.c which was causing audio to skip