diff --git a/client/src/audio.c b/client/src/audio.c index 1375af9d..fb250196 100644 --- a/client/src/audio.c +++ b/client/src/audio.c @@ -278,7 +278,7 @@ void audio_playbackData(uint8_t * data, size_t size) if (audio.playback.state == STREAM_STATE_SETUP) { - frames = ringbuffer_getLength(audio.playback.buffer); + frames = ringbuffer_getCount(audio.playback.buffer); if (audio.audioDev->playback.start(frames)) audio.playback.state = STREAM_STATE_RUN; }