home *** CD-ROM | disk | FTP | other *** search
/ CD-X 1 / cdx_01.iso / demodisc / basq / dualmodp / gus.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-08  |  2.0 KB  |  72 lines

  1. // ************************************************************************
  2. // *
  3. // *    File        : GUS.H
  4. // *
  5. // *    Description : Header file for GUS interface
  6. // *
  7. // *    Copyright (C) 1992 Otto Chrons
  8. // *
  9. // ************************************************************************
  10.  
  11. #ifndef __GUS_H
  12. #define __GUS_H
  13.  
  14. #ifndef __DSMIDEF_H
  15. #include "dsmidef.h"
  16. #endif
  17.  
  18. #include "mcp.h"
  19. #include "cdi.h"
  20.  
  21.  
  22. #define ID_GUS 10
  23.  
  24. #define GUS_TIMER (1193180/100)
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. extern CDIDEVICE CDI_GUS;
  30. extern ulong gusDeltaTime;
  31.  
  32. int cdecl gusInit( SOUNDCARD *scard );
  33. void cdecl gusClose( void );
  34. int cdecl gusStartVoice( void );
  35. int cdecl gusStopVoice( void );
  36. uchar cdecl gusPeek( long addr );
  37. void  cdecl gusPoke( long addr, uchar value );
  38. ulong cdecl gusGetSamplingRate( void );
  39. int cdecl gusSetSample( long channel, void *sample );
  40. int cdecl gusPlaySample( long channel, ulong freq, ulong volume );
  41. int cdecl gusStopChannel( long channel );
  42. int cdecl gusSetVolume( long channel, ulong volume );
  43. int cdecl gusSetRate( long channel, ulong rate );
  44. int cdecl gusSetPosition( long channel, ulong pos );
  45. int cdecl gusSetPanning( long channel, long pan );
  46. int cdecl gusSetMasterVolume( ulong volume );
  47. int cdecl gusMuteChannel( long channel );
  48. int cdecl gusUnmuteChannel( long channel );
  49. int cdecl gusMuteAll( void );
  50. int cdecl gusUnmuteAll( void );
  51. void cdecl  gusPoll( ulong time );
  52. ulong cdecl gusGetDelta( void );
  53. void cdecl  gusDownload( void *sample, ulong sampletag, ulong len );
  54. void cdecl  gusUnload( void *sample );
  55. void cdecl  gusUnloadAll( void );
  56. int cdecl   gusGetVolume( long channel );
  57. ulong cdecl gusGetRate( long channel );
  58. ulong cdecl gusGetPosition( long channel );
  59. int cdecl gusGetPanning( long channel );
  60. int cdecl gusSetupChannels( long count, ulong *volTable);
  61. int cdecl gusGetChannelStatus( long channel );
  62.  
  63. void cdecl gusInterrupt(void);
  64.  
  65. #ifdef __cplusplus
  66. }
  67. #endif
  68.  
  69. #endif
  70.  
  71.  
  72.