patch-Modules_Pro_effects_c 591 B

12345678910111213141516
  1. $OpenBSD: patch-Modules_Pro_effects_c,v 1.2 2007/12/27 16:34:19 espie Exp $
  2. --- Modules/Pro/effects.c.orig Sat Apr 13 19:16:54 1996
  3. +++ Modules/Pro/effects.c Thu Dec 27 16:51:26 2007
  4. @@ -207,8 +207,9 @@ LOCAL void do_vibrato(struct channel *ch)
  5. /* temporary update of only the step value,
  6. * note that we do not change the saved pitch.
  7. */
  8. - set_temp_pitch(ch,
  9. - ch->pitch + sinusoid_value(&(ch->vib))/256);
  10. + if (ch->pitch)
  11. + set_temp_pitch(ch,
  12. + ch->pitch + sinusoid_value(&(ch->vib))/256);
  13. }
  14. LOCAL void set_vibrato(struct channel *ch, struct event *e)