~agrip-hackers/sns/trunk

« back to all changes in this revision

Viewing changes to zq-repo/zquake/source/snd_osnull.c

  • Committer: Matthew Tylee Atkinson
  • Date: 2008-03-07 20:15:20 UTC
  • Revision ID: mta@agrip.org.uk-20080307201520-uj9sa2jrytx91b2t
Remove non-SNS components.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
Copyright (C) 1996-1997 Id Software, Inc.
3
 
 
4
 
This program is free software; you can redistribute it and/or
5
 
modify it under the terms of the GNU General Public License
6
 
as published by the Free Software Foundation; either version 2
7
 
of the License, or (at your option) any later version.
8
 
 
9
 
This program is distributed in the hope that it will be useful,
10
 
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
12
 
 
13
 
See the GNU General Public License for more details.
14
 
 
15
 
You should have received a copy of the GNU General Public License
16
 
along with this program; if not, write to the Free Software
17
 
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18
 
 
19
 
*/
20
 
// snd_osnull.c -- empty stub for SNDDMA_xx functions for OS which don't
21
 
//   support sound (or where it have not been ported - yet :-)
22
 
 
23
 
#include <stdio.h>
24
 
 
25
 
#include "quakedef.h"
26
 
#include "sound.h"
27
 
 
28
 
static int                       snd_inited = 0;
29
 
 
30
 
qbool SNDDMA_Init(void)
31
 
{
32
 
        snd_inited = 0;
33
 
        return 0;
34
 
}
35
 
 
36
 
 
37
 
int SNDDMA_GetDMAPos(void)
38
 
{
39
 
        return (snd_inited);
40
 
}
41
 
 
42
 
 
43
 
void SNDDMA_Shutdown(void)
44
 
{
45
 
        snd_inited = 0;
46
 
}
47
 
 
48
 
 
49
 
/*
50
 
==============
51
 
SNDDMA_Submit
52
 
 
53
 
Send sound to device if buffer isn't really the dma buffer
54
 
===============
55
 
*/
56
 
void SNDDMA_Submit(void)
57
 
{
58
 
}
59