null_snddma.c 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1999-2005 Id Software, Inc.
  4. This file is part of Quake III Arena source code.
  5. Quake III Arena source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake III Arena source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Foobar; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. // snddma_null.c
  19. // all other sound mixing is portable
  20. #include "../client/client.h"
  21. qboolean SNDDMA_Init(void)
  22. {
  23. return qfalse;
  24. }
  25. int SNDDMA_GetDMAPos(void)
  26. {
  27. return 0;
  28. }
  29. void SNDDMA_Shutdown(void)
  30. {
  31. }
  32. void SNDDMA_BeginPainting (void)
  33. {
  34. }
  35. void SNDDMA_Submit(void)
  36. {
  37. }
  38. // bk001119 - added boolean flag, match client/snd_public.h
  39. sfxHandle_t S_RegisterSound( const char *name, qboolean compressed )
  40. {
  41. return 0;
  42. }
  43. void S_StartLocalSound( sfxHandle_t sfxHandle, int channelNum ) {
  44. }
  45. void S_ClearSoundBuffer( void ) {
  46. }