to fix the peak calculation also delete the division

This commit is contained in:
Martin Haaß 2018-08-20 23:38:12 +02:00
parent f58f03dbfd
commit a3770686b4

View file

@ -183,7 +183,7 @@ class Bs1770gainBackend(Backend):
albumgaintot += returnchunk[-1].gain
albumpeaktot = max(albumpeaktot, returnchunk[-1].peak)
returnchunks = returnchunks + returnchunk[0:-1]
returnchunks.append(Gain(albumgaintot / i, albumpeaktot / i))
returnchunks.append(Gain(albumgaintot / i, albumpeaktot))
return returnchunks
else:
return self.compute_chunk_gain(items, is_album)