Added applyGain method to AudioSampleBuffer that affects all the channels and their entirety in one go.