Commits

anatoly techtonik committed cf5b6c9

Fix formula to calculate AvgBytesPerSec:

44100 * 16 bitPerSample is wrong, because:
- 16 is bits per second, so should be divided by 8
- 44100 is for each channel separately, so should be multiplied by 2

Comments (0)

Files changed (1)

       WAVE_FORMAT_PCM,
       2,     # nChannels
       44100, # SamplesPerSec
-      705600,# AvgBytesPerSec = 44100 SamplesPerSec * 16 wBitsPerSample
+      176400,# AvgBytesPerSec = 44100 SamplesPerSec * 4 nBlockAlign
       4,     # nBlockAlign = 2 nChannels * 16 wBitsPerSample / 8 bits per byte
       16,    # wBitsPerSample
       0