home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 5 / MA_Cover_5.iso / ppc / atari / atari800-0.8.6 / sbdrv.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-05-10  |  4.1 KB  |  99 lines

  1. /*****************************************************************************/  
  2. /*                                                                           */ 
  3. /* Module:  SBDRV.H                                                          */ 
  4. /* Purpose: Define function prototypes and structures required for the       */ 
  5. /*          SB DRV routines, V1.2.                                           */ 
  6. /* Author(s): Ron Fries and Neil Bradley                                     */ 
  7. /*                                                                           */ 
  8. /* 01/30/97 - Initial Release                                                */ 
  9. /* 08/24/97 - V1.1 - Added defintion of SBDRV_SHOW_ERR to cause the SBDRV    */ 
  10. /*                   to display error messages.  Comment line to supress     */ 
  11. /* 01/12/98 - V1.2 - Added support for DJGPP.                                */ 
  12. /*                                                                           */ 
  13. /*****************************************************************************/ 
  14. /*                                                                           */ 
  15. /*                 License Information and Copyright Notice                  */ 
  16. /*                 ========================================                  */ 
  17. /*                                                                           */ 
  18. /* SBDrv is Copyright(c) 1997-1998 by Ron Fries, Neil Bradley and            */ 
  19. /*       Bradford Mott                                                       */ 
  20. /*                                                                           */ 
  21. /* This library is free software; you can redistribute it and/or modify it   */ 
  22. /* under the terms of version 2 of the GNU Library General Public License    */ 
  23. /* as published by the Free Software Foundation.                             */ 
  24. /*                                                                           */ 
  25. /* This library is distributed in the hope that it will be useful, but       */ 
  26. /* WITHOUT ANY WARRANTY; without even the implied warranty of                */ 
  27. /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library */ 
  28. /* General Public License for more details.                                  */ 
  29. /* To obtain a copy of the GNU Library General Public License, write to the  */ 
  30. /* Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.   */ 
  31. /*                                                                           */ 
  32. /* Any permitted reproduction of these routines, in whole or in part, must   */ 
  33. /* bear this legend.                                                         */ 
  34. /*                                                                           */ 
  35. /*****************************************************************************/ 
  36.  
  37. #ifndef _SBDRV_H
  38. #define _SBDRV_H
  39.  
  40. #ifndef _TYPEDEF_H
  41. #define _TYPEDEF_H
  42.  
  43. #define SBDRV_SHOW_ERR      /* delete line to supress error message printing */
  44.  
  45. /* define some data types to keep it platform independent */ 
  46. #ifdef COMP16                 /* if 16-bit compiler defined */
  47. #define int8  char
  48. #define int16 int
  49. #define int32 long
  50. #else    /* else default to 32-bit compiler */
  51. #define int8  char
  52. #define int16 short
  53. #define int32 int
  54. #endif                            /* 
  55.  */
  56.  
  57. #define uint8  unsigned int8
  58. #define uint16 unsigned int16
  59. #define uint32 unsigned int32
  60.  
  61. #endif                            /* 
  62.  */
  63.  
  64. /* CONSTANT DEFINITIONS */ 
  65.  
  66. #define AUTO_DMA      0      /* selects auto-initialize DMA mode */
  67. #define STANDARD_DMA  1      /* selects standard DMA mode */
  68.  
  69. /* global function prototypes */ 
  70.  
  71. #ifdef __cplusplus
  72. extern "C" {
  73.     
  74. #endif                            /* 
  75.  */
  76.     
  77.     uint8 OpenSB(uint16 playback_freq, 
  78.                  uint16 buffer_size);
  79.     
  80.     void CloseSB(void);
  81.     
  82.      uint8 Start_audio_output(uint8 dma_mode, 
  83.                               void (*fillBuffer) (uint8 * buf, uint16 n));
  84.     
  85.     void Stop_audio_output(void);
  86.     
  87.     
  88.     void Set_master_volume(uint8 left, uint8 right);
  89.     
  90.     void Set_line_volume(uint8 left, uint8 right);
  91.     
  92.     void Set_FM_volume(uint8 left, uint8 right);
  93.     
  94.     
  95. #ifdef __cplusplus
  96.  
  97. #endif                            /* 
  98.  */
  99.  
  100. #endif                            /* 
  101.  */
  102.  
  103.