Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix WDM-KS buffer position alignment
The previous code is only correct if `bytesPerFrame` is a power of two. If it's not (e.g. 2-channel 24-bit = 6 bytes per frame), then the computed buffer position is corrupted. This can lead the code to use the wrong buffer half, resulting in glitchy audio. Fixes PortAudio#763
- Loading branch information