home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 3 / 3593 / au.c next >
C/C++ Source or Header  |  1991-07-07  |  962b  |  46 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. /*
  11.  * AUX SPARC AU format file.
  12.  * Derived from: AUX skeleton raw-format file.
  13.  */
  14.  
  15. #include "aux.h"
  16.  
  17. /*
  18.  * Set parameters to the fixed parameters known for this format,
  19.  * and change handler to raw handler.
  20.  */
  21. austartread(ft) 
  22. ft_t ft;
  23. {
  24.     /*
  25.      * If your format specifies or your file header contains
  26.      * any of the following information. 
  27.      */
  28.     ft->rate = 8192;
  29.     ft->size = BYTE;
  30.     ft->style = ULAW;
  31.     ft->channels = 1;
  32.     ft->h = &handlers[RAWTYPE];
  33. }
  34.  
  35. austartwrite(ft) 
  36. ft_t ft;
  37. {
  38.     /* If your format specifies any of the following info. */
  39.     ft->rate = 8192;
  40.     ft->size = BYTE;
  41.     ft->style = ULAW;
  42.     ft->channels = 1;
  43.     ft->h = &handlers[RAWTYPE];
  44. }
  45.  
  46.