home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / audio / tracker / sparc.h < prev    next >
Text File  |  2014-05-19  |  1KB  |  41 lines

  1. /* sparc.h */
  2.  
  3. /* $Author: espie $
  4.  * $Id: sparc.h,v 2.0 1991/11/17 21:42:08 espie Exp espie $
  5.  * $Revision: 2.0 $
  6.  * $Log: sparc.h,v $
  7.  * Revision 2.0  1991/11/17  21:42:08  espie
  8.  * New version.
  9.  *
  10.  * Revision 1.3  1991/11/08  14:25:55  espie
  11.  * We now have to return frequency.
  12.  *
  13.  * Revision 1.2  1991/11/04  08:01:20  espie
  14.  * Corrected ruckus with data type of sample.
  15.  *
  16.  * Revision 1.1  1991/11/03  22:46:23  espie
  17.  * Initial revision
  18.  *
  19.  *
  20.  */
  21.  
  22.  
  23. /************************************************************/
  24. /* nS is the number of nSeconds that a sample is played for */
  25. /* the sparc plays at 8000 bytes/sec  =>                    */
  26. /* 1 byte = 125000 nSec                                     */
  27. /* VSYNC is the number of bytes played in 1/50 sec          */
  28. /* i.e., 8000/50                                            */
  29. /************************************************************/
  30. #define HZ 8000
  31.      
  32. /* at some point, we should decide for an oversample rate.
  33.  * 2 seems like a good idea.
  34.  */
  35.  
  36. /* this is the type for storing the samples.
  37.  * Warning: char must be signed.
  38.  */
  39.  
  40. typedef char SAMPLE;
  41.