fixed relying on 32bit longs in wav chunk header