Avoid duplicate calculations
Offset to the buffer's channel start first
Inline a couple functions
Do up to 256 samples at a time with multi-step loops
Set the right variable when assuming CPU extensions
Handle logging Unicode strings on Windows
Support capture with mmdevapi
Fix logging on Windows