diff --git a/wave.py b/wave.py index 474ef1c..28f48af 100755 --- a/wave.py +++ b/wave.py @@ -9,7 +9,8 @@ log = logging.getLogger(__name__) from common import Fs Fs = int(Fs) # sampling rate bits_per_sample = 16 -bytes_per_second = bits_per_sample * Fs / 8.0 +bytes_per_sample = bits_per_sample / 8.0 +bytes_per_second = bytes_per_sample * Fs audio_format = 'S{}_LE'.format(bits_per_sample) # PCM signed little endian