SNDSRC.H 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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: SNDSRC.H
  17. author: James R. Dose
  18. date: March 26, 1994
  19. Public header for for SNDSRC.C
  20. (c) Copyright 1994 James R. Dose. All Rights Reserved.
  21. **********************************************************************/
  22. #ifndef __SNDSRC_H
  23. #define __SNDSRC_H
  24. enum SS_ERRORS
  25. {
  26. SS_Warning = -2,
  27. SS_Error = -1,
  28. SS_Ok = 0,
  29. SS_NotFound,
  30. SS_NoSoundPlaying,
  31. SS_DPMI_Error
  32. };
  33. #define SELECT_SOUNDSOURCE_PORT1 "ss1"
  34. #define SELECT_SOUNDSOURCE_PORT2 "ss2"
  35. #define SELECT_SOUNDSOURCE_PORT3 "ss3"
  36. #define SELECT_TANDY_SOUNDSOURCE "sst"
  37. #define SS_Port1 0x3bc
  38. #define SS_Port2 0x378
  39. #define SS_Port3 0x278
  40. #define SS_DefaultPort 0x378
  41. #define SS_SampleRate 7000
  42. #define SS_DMAChannel -1
  43. char *SS_ErrorString( int ErrorNumber );
  44. void SS_StopPlayback( void );
  45. int SS_GetCurrentPos( void );
  46. int SS_BeginBufferedPlayback( char *BufferStart, int BufferSize, int NumDivisions, void ( *CallBackFunc )( void ) );
  47. int SS_GetPlaybackRate( void );
  48. int SS_SetMixMode( int mode );
  49. int SS_SetPort( int port );
  50. void SS_SetCallBack( void ( *func )( void ) );
  51. int SS_Init( int soundcard );
  52. void SS_Shutdown( void );
  53. void SS_UnlockMemory( void );
  54. int SS_LockMemory( void );
  55. #endif