soundsrv.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. #ifndef __SNDSERVER_H__
  35. #define __SNDSERVER_H__
  36. #define SAMPLECOUNT 512
  37. #define MIXBUFFERSIZE (SAMPLECOUNT*2*2)
  38. #define SPEED 11025
  39. void I_InitMusic(void);
  40. void
  41. I_InitSound
  42. ( int samplerate,
  43. int samplesound );
  44. void
  45. I_SubmitOutputBuffer
  46. ( void* samples,
  47. int samplecount );
  48. void I_ShutdownSound(void);
  49. void I_ShutdownMusic(void);
  50. #endif