Fixed and polished Windows audio capture code