mirror of
https://github.com/xiph/opus.git
synced 2025-05-23 03:39:17 +00:00
Better rounding
This commit is contained in:
parent
0ddfdfc7c0
commit
3c694db226
2 changed files with 18 additions and 15 deletions
|
@ -101,7 +101,7 @@ for c in range(0, nb_frames):
|
|||
fexc[0, 0, 0] = lin2ulaw(pcm[f*frame_size + i])
|
||||
mem = coef*mem + pcm[f*frame_size + i]
|
||||
#print(mem)
|
||||
np.array([mem], dtype='int16').tofile(fout)
|
||||
np.array([np.round(mem)], dtype='int16').tofile(fout)
|
||||
skip = 0
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue