Add pan effect, with some API changes for stereo