[PATCH] Add a null sound driver

Add a null sound driver to aid porting to new platforms.
Fix a missing include in sound.h.

Signed-off-by: Tyrann <tyrann@disenchant.net>
This commit is contained in:
Tyrann 2007-02-18 20:33:00 +10:30
parent fc086a80d2
commit 689baf5129
2 changed files with 32 additions and 0 deletions

25
common/snd_null.c Normal file
View File

@ -0,0 +1,25 @@
/*
Copyright (C) 1996-1997 Id Software, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "sound.h"
qboolean SNDDMA_Init(void) { return false; }
int SNDDMA_GetDMAPos(void) { return 0; }
void SNDDMA_Shutdown(void) { }
void SNDDMA_Submit(void) { }

View File

@ -26,6 +26,13 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "qtypes.h"
#include "zone.h"
#ifdef NQ_HACK
#include "quakedef.h"
#endif
#ifdef QW_HACK
#include "bothdefs.h"
#endif
// sound.h -- client sound i/o functions
// FIXME - QW defines these in protocol.h, which is better?