diff options
Diffstat (limited to 'flow/audioiosndio.cpp')
| -rw-r--r-- | flow/audioiosndio.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 <cstdlib> #include <cstring> +#include <climits> 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; |
