home *** CD-ROM | disk | FTP | other *** search
/ ST-Computer Leser-CD 2000 January / LCD_01_2000.iso / games / doom / sndserv / include / soundsrv.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-16  |  1.6 KB  |  59 lines

  1. /*  Emacs style mode select   -*- C++ -*-  */
  2. /* ----------------------------------------------------------------------------- */
  3. /*  */
  4. /*  $Id: soundsrv.h,v 1.3 1997/01/29 22:40:44 b1 Exp $ */
  5. /*  */
  6. /*  Copyright (C) 1993-1996 by id Software, Inc. */
  7. /*  */
  8. /*  This source is available for distribution and/or modification */
  9. /*  only under the terms of the DOOM Source Code License as */
  10. /*  published by id Software. All rights reserved. */
  11. /*  */
  12. /*  The source is distributed in the hope that it will be useful, */
  13. /*  but WITHOUT ANY WARRANTY; without even the implied warranty of */
  14. /*  FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License */
  15. /*  for more details. */
  16. /*  */
  17. /*  */
  18. /*  $Log: soundsrv.h,v $ */
  19. /*  Revision 1.3  1997/01/29 22:40:44  b1 */
  20. /*  Reformatting, S (sound) module files. */
  21. /*  */
  22. /*  Revision 1.2  1997/01/21 19:00:07  b1 */
  23. /*  First formatting run: */
  24. /*   using Emacs cc-mode.el indentation for C++ now. */
  25. /*  */
  26. /*  Revision 1.1  1997/01/19 17:22:50  b1 */
  27. /*  Initial check in DOOM sources as of Jan. 10th, 1997 */
  28. /*  */
  29. /*  */
  30. /*  DESCRIPTION: */
  31. /*     UNIX soundserver, separate process.  */
  32. /*  */
  33. /* ----------------------------------------------------------------------------- */
  34.  
  35. #ifndef __SNDSERVER_H__
  36. #define __SNDSERVER_H__
  37.  
  38. #define SAMPLECOUNT        512
  39. #define MIXBUFFERSIZE    (SAMPLECOUNT*2*2)
  40. #define SPEED            11025
  41.  
  42.  
  43. void I_InitMusic(void);
  44.  
  45. void
  46. I_InitSound
  47. ( int        samplerate,
  48.   int        samplesound );
  49.  
  50. void
  51. I_SubmitOutputBuffer
  52. ( void*        samples,
  53.   int        samplecount );
  54.  
  55. void I_ShutdownSound(void);
  56. void I_ShutdownMusic(void);
  57.  
  58. #endif
  59.