[client] audio: report the buffered frames and not the buffer length

This commit is contained in:
Geoffrey McRae 2022-01-22 16:05:17 +11:00
parent aba30e9541
commit 9601bc677f

View File

@ -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;
}