mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-14 01:58:25 +00:00
[client] audio: tell the audiodev to stop on the last packet, not after
This commit is contained in:
parent
73dc08e5f9
commit
4fadf3a130
@ -140,7 +140,8 @@ static int playbackPullFrames(uint8_t ** data, int frames)
|
|||||||
else
|
else
|
||||||
frames = 0;
|
frames = 0;
|
||||||
|
|
||||||
if (audio.playback.state == STREAM_STATE_DRAIN && frames == 0)
|
if (audio.playback.state == STREAM_STATE_DRAIN &&
|
||||||
|
ringbuffer_getCount(audio.playback.buffer) == 0)
|
||||||
playbackStopNL();
|
playbackStopNL();
|
||||||
|
|
||||||
LG_UNLOCK(audio.playback.lock);
|
LG_UNLOCK(audio.playback.lock);
|
||||||
|
Loading…
Reference in New Issue
Block a user