mirror of
https://github.com/libretro/libretro-tyrquake.git
synced 2024-12-02 21:37:06 +00:00
[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:
parent
fc086a80d2
commit
689baf5129
25
common/snd_null.c
Normal file
25
common/snd_null.c
Normal 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) { }
|
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user