mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-08 03:34:09 +00:00
[client] audio: report the buffered frames and not the buffer length
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user