home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Sound / SoX / Source / map.c < prev    next >
C/C++ Source or Header  |  1999-07-18  |  2KB  |  68 lines

  1.  
  2. /*
  3.  * July 5, 1991
  4.  * Copyright 1991 Lance Norskog And Sundry Contributors
  5.  * This source code is freely redistributable and may be used for
  6.  * any purpose.  This copyright notice must be maintained. 
  7.  * Lance Norskog And Sundry Contributors are not responsible for 
  8.  * the consequences of using this software.
  9.  */
  10.  
  11. /*
  12.  * Sound Tools Map effect file.
  13.  *
  14.  * Print out map of sound file instrument specifications.
  15.  */
  16.  
  17. #include <math.h>
  18. #include "st.h"
  19.  
  20. /*
  21.  * Process options
  22.  */
  23. void map_getopts(effp, n, argv) 
  24. eff_t effp;
  25. int n;
  26. char **argv;
  27. {
  28.     if (n)
  29.         fail("Map effect takes no options.");
  30. }
  31.  
  32. /*
  33.  * Prepare processing.
  34.  */
  35. void map_start(effp)
  36. eff_t effp;
  37. {
  38.     int i;
  39.  
  40.     fprintf(stderr, "Loop info:\n");
  41.     for(i = 0; i < 8; i++) {
  42.         fprintf(stderr, "Loop %d: start:  %6d",i,effp->loops[i].start);
  43.         fprintf(stderr, " length: %6d", effp->loops[i].length);
  44.         fprintf(stderr, " count: %6d", effp->loops[i].count);
  45.         fprintf(stderr, " type:  ");
  46.         switch(effp->loops[i].type) {
  47.             case 0: fprintf(stderr, "off\n"); break;
  48.             case 1: fprintf(stderr, "forward\n"); break;
  49.             case 2: fprintf(stderr, "forward/backward\n"); break;
  50.         }
  51.     }
  52.     fprintf(stderr, "MIDI note: %d\n", effp->instr.MIDInote);
  53.     fprintf(stderr, "MIDI low : %d\n", effp->instr.MIDIlow);
  54.     fprintf(stderr, "MIDI hi  : %d\n", effp->instr.MIDIhi);
  55. }
  56.  
  57. /*
  58.  * Processed signed long samples from ibuf to obuf.
  59.  * Return number of samples processed.
  60.  */
  61.  
  62. void map_flow(effp, ibuf, obuf, isamp, osamp)
  63. eff_t effp;
  64. LONG *ibuf, *obuf;
  65. int *isamp, *osamp;
  66. {
  67. }
  68.