Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ecbce95b authored by Paul Keith's avatar Paul Keith Committed by Luca Stefani
Browse files

Recorder: Correct WAV header creation

* ByteRate = SampleRate * NumChannels * BitsPerSample/8
* The previous calculation was off by a factor of 10
* BlockAlign = NumChannels * BitsPerSample/8
* The previous calculation was off by a factor of 2
* While we're at it, reorder the byte-rate formula to make more
  logical sense -- NumChannels * SampleRate * BitsPerSample/8
* Source: http://soundfile.sapp.org/doc/WaveFormat/

Change-Id: I579e4b6833044114a594b371167a6087f57c01a5
parent 54706e46
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment