patch-xanim_c 1.3 KB

123456789101112131415161718192021222324252627282930
  1. $OpenBSD: patch-xanim_c,v 1.2 2015/06/29 23:07:07 ratchov Exp $
  2. --- xanim.c.orig Sun Mar 21 23:36:25 1999
  3. +++ xanim.c Fri Jun 26 12:27:44 2015
  4. @@ -628,6 +628,7 @@ void Usage()
  5. fprintf(stdout," Ak Enables video frame skipping to keep in sync with audio.\n");
  6. fprintf(stdout," Ap# Play Audio from output port #(Sparc only).\n");
  7. /* fprintf(stdout," As# Scale Audio playback speed by #.\n"); */
  8. + fprintf(stdout," AS# Scale Audio playback amplitude by #.\n");
  9. fprintf(stdout," Av# Set Audio volume to #. range 0 to 100.\n");
  10. fprintf(stdout,"\n C[copts] Color SubMenu\n");
  11. fprintf(stdout," C1 Create cmap from 1st TrueColor frame. Map\n");
  12. @@ -861,6 +862,7 @@ char *argv[];
  13. vaudiof->device = DEFAULT_AUDIO_DEVICE_NAME;
  14. vaudiof->scale = 1.0;
  15. + vaudiof->amp_scale = 0.0;
  16. vaudiof->mute = xaFALSE;
  17. vaudiof->volume = DEFAULT_XA_AUDIO_VOLUME;
  18. if (vaudiof->volume > XA_AUDIO_MAXVOL) vaudiof->volume = XA_AUDIO_MAXVOL;
  19. @@ -1168,6 +1170,9 @@ char *argv[];
  20. fprintf(stdout,"XAnim: +As# temporarily disabled.\n");
  21. if (vaudiof->scale < 0.125) vaudiof->scale = 0.125;
  22. if (vaudiof->scale > 8.000) vaudiof->scale = 8.000;
  23. + break;
  24. + case 'S': /* snd amplitude */
  25. + j++; vaudiof->amp_scale = XA_Read_Float(in, &j);
  26. break;
  27. case 'v':
  28. j++; vaudiof->volume = XA_Read_Int(in,&j);