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;