SNDSCAPE.H 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /*
  2. Copyright (C) 1994-1995 Apogee Software, Ltd.
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License
  5. as published by the Free Software Foundation; either version 2
  6. of the License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. See the GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  14. */
  15. /**********************************************************************
  16. module: SNDSCAPE.H
  17. author: James R. Dose
  18. date: October 26, 1994
  19. Public header for SNDSCAPE.C
  20. (c) Copyright 1994 James R. Dose. All Rights Reserved.
  21. **********************************************************************/
  22. #ifndef __SNDSCAPE_H
  23. #define __SNDSCAPE_H
  24. extern int SOUNDSCAPE_DMAChannel;
  25. extern int SOUNDSCAPE_ErrorCode;
  26. enum SOUNDSCAPE_ERRORS
  27. {
  28. SOUNDSCAPE_Warning = -2,
  29. SOUNDSCAPE_Error = -1,
  30. SOUNDSCAPE_Ok = 0,
  31. SOUNDSCAPE_EnvNotFound,
  32. SOUNDSCAPE_InitFileNotFound,
  33. SOUNDSCAPE_MissingProductInfo,
  34. SOUNDSCAPE_MissingPortInfo,
  35. SOUNDSCAPE_MissingDMAInfo,
  36. SOUNDSCAPE_MissingIRQInfo,
  37. SOUNDSCAPE_MissingSBIRQInfo,
  38. SOUNDSCAPE_MissingSBENABLEInfo,
  39. SOUNDSCAPE_MissingWavePortInfo,
  40. SOUNDSCAPE_HardwareError,
  41. SOUNDSCAPE_NoSoundPlaying,
  42. SOUNDSCAPE_InvalidSBIrq,
  43. SOUNDSCAPE_UnableToSetIrq,
  44. SOUNDSCAPE_DmaError,
  45. SOUNDSCAPE_DPMI_Error,
  46. SOUNDSCAPE_OutOfMemory
  47. };
  48. char *SOUNDSCAPE_ErrorString( int ErrorNumber );
  49. void SOUNDSCAPE_SetPlaybackRate( unsigned rate );
  50. unsigned SOUNDSCAPE_GetPlaybackRate( void );
  51. int SOUNDSCAPE_SetMixMode( int mode );
  52. void SOUNDSCAPE_StopPlayback( void );
  53. int SOUNDSCAPE_GetCurrentPos( void );
  54. int SOUNDSCAPE_BeginBufferedPlayback( char *BufferStart, int BufferSize, int NumDivisions, unsigned SampleRate, int MixMode, void ( *CallBackFunc )( void ) );
  55. int SOUNDSCAPE_GetCardInfo( int *MaxSampleBits, int *MaxChannels );
  56. void SOUNDSCAPE_SetCallBack( void ( *func )( void ) );
  57. int SOUNDSCAPE_GetMIDIPort( void );
  58. int SOUNDSCAPE_Init( void );
  59. void SOUNDSCAPE_Shutdown( void );
  60. #endif