averaging in playback callback