PAS16.H 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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: PAS16.H
  17. author: James R. Dose
  18. date: March 27, 1994
  19. Public header for for PAS16.C
  20. (c) Copyright 1994 James R. Dose. All Rights Reserved.
  21. **********************************************************************/
  22. #ifndef __PAS16_H
  23. #define __PAS16_H
  24. enum PAS_ERRORS
  25. {
  26. PAS_Warning = -2,
  27. PAS_Error = -1,
  28. PAS_Ok = 0,
  29. PAS_DriverNotFound,
  30. PAS_DmaError,
  31. PAS_InvalidIrq,
  32. PAS_UnableToSetIrq,
  33. PAS_Dos4gwIrqError,
  34. PAS_NoSoundPlaying,
  35. PAS_CardNotFound,
  36. PAS_DPMI_Error,
  37. PAS_OutOfMemory
  38. };
  39. #define PAS_MaxMixMode STEREO_16BIT
  40. #define PAS_DefaultSampleRate 11000
  41. #define PAS_DefaultMixMode MONO_8BIT
  42. #define PAS_MaxIrq 15
  43. #define PAS_MinSamplingRate 4000
  44. #define PAS_MaxSamplingRate 44000
  45. extern unsigned int PAS_DMAChannel;
  46. char *PAS_ErrorString( int ErrorNumber );
  47. void PAS_SetPlaybackRate( unsigned rate );
  48. unsigned PAS_GetPlaybackRate( void );
  49. int PAS_SetMixMode( int mode );
  50. void PAS_StopPlayback( void );
  51. int PAS_GetCurrentPos( void );
  52. int PAS_BeginBufferedPlayback( char *BufferStart, int BufferSize, int NumDivisions, unsigned SampleRate, int MixMode, void ( *CallBackFunc )( void ) );
  53. int PAS_BeginBufferedRecord( char *BufferStart, int BufferSize, int NumDivisions, unsigned SampleRate, int MixMode, void ( *CallBackFunc )( void ) );
  54. int PAS_SetPCMVolume( int volume );
  55. int PAS_GetPCMVolume( void );
  56. void PAS_SetFMVolume( int volume );
  57. int PAS_GetFMVolume( void );
  58. int PAS_GetCardInfo( int *MaxSampleBits, int *MaxChannels );
  59. void PAS_SetCallBack( void ( *func )( void ) );
  60. int PAS_SaveMusicVolume( void );
  61. void PAS_RestoreMusicVolume( void );
  62. int PAS_Init( void );
  63. void PAS_Shutdown( void );
  64. void PAS_UnlockMemory( void );
  65. int PAS_LockMemory( void );
  66. #endif