buffer size as integer

This commit is contained in:
jb-alvarado 2018-11-18 18:38:17 +01:00
parent 605ee1c1bc
commit e89f206f1d

View File

@ -226,7 +226,8 @@ def calc_buffer_size():
a_size = (_pre_comp.a_sample * 16 * 2 * _buffer.length) / 8 a_size = (_pre_comp.a_sample * 16 * 2 * _buffer.length) / 8
return (v_size + a_size) / 1024 return (v_size + a_size) / 1024
""" """
return (_pre_comp.v_bitrate + _pre_comp.a_bitrate) * 0.125 * _buffer.length return int(
(_pre_comp.v_bitrate + _pre_comp.a_bitrate) * 0.125 * _buffer.length)
# check if processes a well # check if processes a well