From 247aa206ed81bfc3afa0484a502cd403bd5064ee Mon Sep 17 00:00:00 2001 From: Denis Kozadaev Date: Tue, 30 Dec 2025 17:47:18 +0300 Subject: user climits and CHAR_BIT instead on NBBY Signed-off-by: Denis Kozadaev --- flow/audioiosndio.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'flow') diff --git a/flow/audioiosndio.cpp b/flow/audioiosndio.cpp index 03efd1b..cfbdf10 100644 --- a/flow/audioiosndio.cpp +++ b/flow/audioiosndio.cpp @@ -35,6 +35,7 @@ #include #include +#include int bps, chans; long long realpos, playpos, recpos; @@ -155,7 +156,7 @@ bool AudioIOSNDIO::open() while (_fragmentSize * _fragmentCount > 1024*32) _fragmentCount--; - bpf = ((par.bits / NBBY) * par.pchan); + bpf = ((par.bits / CHAR_BIT) * par.pchan); par.round = _fragmentSize / bpf; par.appbufsz = _fragmentSize * _fragmentCount / bpf; -- cgit v1.2.3