From c904774d7af2f15885fd444ee2f76547bf06f45e Mon Sep 17 00:00:00 2001 From: deadwood Date: Sun, 8 Nov 2015 17:17:08 +0000 Subject: [PATCH] alsa.audio: add additional read cycle if there is more than 20ms space in buffer git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@51206 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/devs/AHI/Drivers/Alsa/alsa-playslave.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/workbench/devs/AHI/Drivers/Alsa/alsa-playslave.c b/workbench/devs/AHI/Drivers/Alsa/alsa-playslave.c index 59eb1e7cc6..ef782312ae 100644 --- a/workbench/devs/AHI/Drivers/Alsa/alsa-playslave.c +++ b/workbench/devs/AHI/Drivers/Alsa/alsa-playslave.c @@ -121,6 +121,8 @@ Slave( struct ExecBase* SysBase ) if (framesfree >= 64) { readcycles++; + if (framesfree >= AudioCtrl->ahiac_BuffSamples) + readcycles++; break; } -- 2.11.4.GIT