mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-03 11:17:10 +00:00
[client] audio: report the buffered frames and not the buffer length
This commit is contained in:
parent
aba30e9541
commit
9601bc677f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue