home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3593 / handlers.c < prev    next >
C/C++ Source or Header  |  1991-07-07  |  2KB  |  66 lines

  1. /*
  2.  * July 5, 1991
  3.  * Copyright 1991 Lance Norskog And Sundry Contributors
  4.  * This source code is freely redistributable and may be used for
  5.  * any purpose.  This copyright notice must be maintained. 
  6.  * Lance Norskog And Sundry Contributors are not responsible for 
  7.  * the consequences of using this software.
  8.  */
  9.  
  10. #include "aux.h"
  11.  
  12. /*
  13.  * AUX tables.
  14.  */
  15.  
  16. char *rawnames[] = {
  17.     "raw",
  18.     (char *) 0
  19. };
  20. extern rawstartread(), rawread(), rawstopread();
  21. extern rawstartwrite(), rawwrite(), rawstopwrite();
  22.  
  23. char *vocnames[] = {
  24.     "voc",
  25.     (char *) 0
  26. };
  27. extern vocstartread(), vocread(), vocstopread();
  28. extern vocstartwrite(), vocwrite(), vocstopwrite();
  29.  
  30. char *aunames[] = {
  31.     "au",
  32.     (char *) 0
  33. };
  34. extern austartread(), auread(), austopread();
  35. extern austartwrite(), auwrite(), austopwrite();
  36.  
  37. char *sbnames[] = {
  38.     "sb",
  39.     (char *) 0
  40. };
  41. extern sbstartread();
  42. extern sbstartwrite();
  43.  
  44. char *sfnames[] = {
  45.     "sf",
  46.     (char *) 0
  47. };
  48. extern sfstartread();
  49. extern sfstartwrite();
  50.  
  51. int nothing() {;}
  52.  
  53. struct handler handlers[] = {
  54.     {rawnames, rawstartread, rawread, nothing,     /* Raw format */
  55.         rawstartwrite, rawwrite, nothing},
  56.     {vocnames, vocstartread, vocread, vocstopread,  /* Sound Blaster .VOC */
  57.         vocstartwrite, vocwrite, vocstopwrite},
  58.     {aunames, austartread, nothing, nothing,     /* SPARC .AU */
  59.         austartwrite, nothing, nothing},    /* Relies on raw */
  60.     {sbnames, sbstartread, nothing, nothing,     /* Sound Blaster raw */
  61.         sbstartwrite, nothing, nothing},    /* Relies on raw */
  62.     {sfnames, sfstartread, nothing, nothing,     /* IRCAM Sound File */
  63.         sfstartwrite, nothing, nothing},    /* Relies on raw */
  64.     0
  65. };
  66.