diff --git a/client/src/audio.c b/client/src/audio.c index 1e5f7a10..c78bb204 100644 --- a/client/src/audio.c +++ b/client/src/audio.c @@ -227,7 +227,10 @@ static int playbackPullFrames(uint8_t * dst, int frames) int offset = ringbuffer_getCount(audio.playback.buffer) - audio.playback.deviceTargetStartFrames; if (offset < 0) + { + data->nextPosition += offset; ringbuffer_consume(audio.playback.buffer, NULL, offset); + } audio.playback.state = STREAM_STATE_RUN; }