Commit bbdb83d6 authored by Josh Coalson's avatar Josh Coalson
Browse files

fix incorrect handling of block align

parent d7f5344a
......@@ -118,7 +118,7 @@ elsif ($format eq 'wave' || $format eq 'wave64' || $format eq 'rf64') {
print pack('v', $channels);
print pack('V', $samplerate);
print pack('V', $samplerate * $channels * $bps);
print pack('v', $bps); # block align = channels*((bps+7)/8)
print pack('v', $channels * $bps); # block align = channels*((bps+7)/8)
print pack('v', $bps * 8); # bits per sample = ((bps+7)/8)*8
if ($wavx) {
print pack('v', 22); # cbSize
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment