FTEQW
Documentation of the FTE engine source tree.
cdaudio.h
Go to the documentation of this file.
1/*
2Copyright (C) 1996-1997 Id Software, Inc.
3
4This program is free software; you can redistribute it and/or
5modify it under the terms of the GNU General Public License
6as published by the Free Software Foundation; either version 2
7of the License, or (at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13See the GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with this program; if not, write to the Free Software
17Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19*/
20
21#ifdef HAVE_CDPLAYER
22void CDAudio_Init(void);
23qboolean CDAudio_Startup(void); //called when the cd isn't currently valid. returns if its valid or not.
24int CDAudio_GetAudioDiskInfo(void);//returns number of tracks available, or 0 if the cd is not valid.
25void CDAudio_Play(int track);
26void CDAudio_Stop(void);
27void CDAudio_Pause(void);
28void CDAudio_Resume(void);
29void CDAudio_Eject(void);
30void CDAudio_CloseDoor(void);
31void CDAudio_Shutdown(void);
32void CDAudio_Update(void);
33#else
34#define CDAudio_Update()
35#define CDAudio_Init()
36#define CDAudio_Shutdown()
37#define CDAudio_Pause()
38#define CDAudio_Resume()
39#endif
40
qboolean
Definition: api_menu.h:34
void CDAudio_CloseDoor(void)
Definition: cd_linux.c:59
qboolean CDAudio_Startup(void)
Definition: cd_linux.c:186
void CDAudio_Resume(void)
Definition: cd_linux.c:153
void CDAudio_Stop(void)
Definition: cd_linux.c:134
void CDAudio_Eject(void)
Definition: cd_linux.c:49
int CDAudio_GetAudioDiskInfo(void)
Definition: cd_linux.c:68
void CDAudio_Init(void)
Definition: cd_linux.c:209
void CDAudio_Update(void)
Definition: cd_linux.c:162
void CDAudio_Play(int track)
Definition: cd_linux.c:91
void CDAudio_Shutdown(void)
Definition: cd_linux.c:214
void CDAudio_Pause(void)
Definition: cd_linux.c:143