Comment 3 for bug 72780

Revision history for this message
Luke Tilley (sinisterguy) wrote :

the problem is in Event.py line 475:

if st.get_name() == "level":
 end = st["endtime"] / float(gst.SECOND)
 self.levels.append(DbToFloat(st["peak"][0]))
 self.loadingLength = int(end)

st["peak"] contains 2 values, one for each channel of the audio. We're currently only taking the measurement of the left channel. The only question is how do you properly represent a stereo file in one waveform? I was thinking of just doing the average of the two (which works to fix the problem btw) but i'm not sure if this is the proper method.