mirror of
https://github.com/google/liblc3.git
synced 2026-04-18 13:44:49 +00:00
Adopt review suggestions
This commit is contained in:
@@ -51,7 +51,7 @@ wavfile = wave.open(f_wav, 'rb')
|
||||
|
||||
samplerate = wavfile.getframerate()
|
||||
nchannels = wavfile.getnchannels()
|
||||
bitdepth = wavfile.getsampwidth() * 8
|
||||
bit_depth = wavfile.getsampwidth() * 8
|
||||
stream_length = wavfile.getnframes()
|
||||
|
||||
# --- Setup encoder ---
|
||||
@@ -77,7 +77,7 @@ for i in range(0, stream_length, frame_length):
|
||||
f_lc3.write(struct.pack('=H', frame_size))
|
||||
|
||||
pcm = wavfile.readframes(frame_length)
|
||||
f_lc3.write(enc.encode(pcm, frame_size, bit_depth=bitdepth))
|
||||
f_lc3.write(enc.encode(pcm, frame_size, bit_depth=bit_depth))
|
||||
|
||||
# --- Cleanup ---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user