Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
51 lines (40 loc) · 1.53 KB

SDL_dummyaudio.c

File metadata and controls

51 lines (40 loc) · 1.53 KB
 
Mar 14, 2006
Mar 14, 2006
1
2
/*
SDL - Simple DirectMedia Layer
Jan 24, 2010
Jan 24, 2010
3
Copyright (C) 1997-2010 Sam Lantinga
Mar 14, 2006
Mar 14, 2006
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library 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
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Sam Lantinga
slouken@libsdl.org
Mar 14, 2006
Mar 14, 2006
22
This file written by Ryan C. Gordon (icculus@icculus.org)
Mar 14, 2006
Mar 14, 2006
23
24
25
*/
#include "SDL_config.h"
Mar 14, 2006
Mar 14, 2006
26
/* Output audio to nowhere... */
Mar 14, 2006
Mar 14, 2006
27
28
29
30
31
#include "SDL_audio.h"
#include "../SDL_audio_c.h"
#include "SDL_dummyaudio.h"
Jul 10, 2006
Jul 10, 2006
32
static int
Oct 17, 2006
Oct 17, 2006
33
DUMMYAUD_OpenDevice(_THIS, const char *devname, int iscapture)
Mar 14, 2006
Mar 14, 2006
34
{
Oct 28, 2006
Oct 28, 2006
35
return 1; /* always succeeds. */
Mar 14, 2006
Mar 14, 2006
36
37
}
Oct 17, 2006
Oct 17, 2006
38
static int
Oct 28, 2006
Oct 28, 2006
39
DUMMYAUD_Init(SDL_AudioDriverImpl * impl)
Mar 14, 2006
Mar 14, 2006
40
{
Jul 10, 2006
Jul 10, 2006
41
/* Set the function pointers */
Oct 17, 2006
Oct 17, 2006
42
43
impl->OpenDevice = DUMMYAUD_OpenDevice;
impl->OnlyHasDefaultOutputDevice = 1;
Jan 26, 2010
Jan 26, 2010
44
return 1; /* this audio target is available. */
Mar 14, 2006
Mar 14, 2006
45
46
47
}
AudioBootStrap DUMMYAUD_bootstrap = {
Oct 17, 2006
Oct 17, 2006
48
"dummy", "SDL dummy audio driver", DUMMYAUD_Init, 1
Mar 14, 2006
Mar 14, 2006
49
50
};
Jul 10, 2006
Jul 10, 2006
51
/* vi: set ts=4 sw=4 expandtab: */