setting onaudioprocess of the correct object