]> icculus.org git repositories - theoddone33/hhexen.git/blob - base/i_cdmus.c
Add .gitignore for ignoring generated files.
[theoddone33/hhexen.git] / base / i_cdmus.c
1
2 //**************************************************************************
3 //**
4 //** i_cdmus.c
5 //**
6 //**************************************************************************
7
8 // HEADER FILES ------------------------------------------------------------
9 #include <stdio.h>
10 #include <unistd.h>
11 #include <stdlib.h>
12 #include <sys/ioctl.h>
13 #include <sys/file.h>
14 #include <sys/types.h>
15 #include <fcntl.h>
16 #include <string.h>
17 #include <time.h>
18 #include <errno.h>
19 #ifdef HAVE_LINUX_CDROM_H
20 #include <linux/cdrom.h>
21 #endif
22 #include "h2def.h"
23 #include "i_sound.h"
24
25 // MACROS ------------------------------------------------------------------
26
27 // #define MAX_AUDIO_TRACKS 25
28
29 // TYPES -------------------------------------------------------------------
30
31 // EXTERNAL FUNCTION PROTOTYPES --------------------------------------------
32
33 // PUBLIC FUNCTION PROTOTYPES ----------------------------------------------
34
35 // PRIVATE FUNCTION PROTOTYPES ---------------------------------------------
36
37 // EXTERNAL DATA DECLARATIONS ----------------------------------------------
38
39 // PUBLIC DATA DEFINITIONS -------------------------------------------------
40
41 int cd_Error;
42
43 // PRIVATE DATA DEFINITIONS ------------------------------------------------
44
45 //static int cd_FirstTrack;
46 //static int cd_LastTrack;
47
48 static int cdfile = -1;
49 //static char cd_dev[64] = "/dev/cdrom";
50
51 // CODE --------------------------------------------------------------------
52
53 static int I_CDGetDiskInfo(void)
54 {
55         return 0;
56 }
57 //==========================================================================
58 //
59 // I_CDMusInit
60 //
61 // Initializes the CD audio system.  Must be called before using any
62 // other I_CDMus functions.
63 //
64 // Returns: 0 (ok) or -1 (error, in cd_Error).
65 //
66 //==========================================================================
67
68 int I_CDMusInit(void)
69 {
70         //open CD device
71         I_CDGetDiskInfo ();
72         return 0;
73 }
74
75 //==========================================================================
76 //
77 // I_CDMusPlay
78 //
79 // Play an audio CD track.
80 //
81 // Returns: 0 (ok) or -1 (error, in cd_Error).
82 //
83 //==========================================================================
84
85 int I_CDMusPlay(int track)
86 {
87         return 0;
88 }
89
90 //==========================================================================
91 //
92 // I_CDMusStop
93 //
94 // Stops the playing of an audio CD.
95 //
96 // Returns: 0 (ok) or -1 (error, in cd_Error).
97 //
98 //==========================================================================
99
100 int I_CDMusStop(void)
101 {
102         return 0;
103 }
104
105 //==========================================================================
106 //
107 // I_CDMusResume
108 //
109 // Resumes the playing of an audio CD.
110 //
111 // Returns: 0 (ok) or -1 (error, in cd_Error).
112 //
113 //==========================================================================
114
115 int I_CDMusResume(void)
116 {
117         return 0;
118 }
119
120 //==========================================================================
121 //
122 // I_CDMusSetVolume
123 //
124 // Sets the CD audio volume (0 - 255).
125 //
126 // Returns: 0 (ok) or -1 (error, in cd_Error).
127 //
128 //==========================================================================
129
130 int I_CDMusSetVolume(int volume)
131 {
132         return 0;
133 }
134
135 //==========================================================================
136 //
137 // I_CDMusFirstTrack
138 //
139 // Returns: the number of the first track.
140 //
141 //==========================================================================
142
143 int I_CDMusFirstTrack(void)
144 {
145         return 0;
146 }
147
148 //==========================================================================
149 //
150 // I_CDMusLastTrack
151 //
152 // Returns: the number of the last track.
153 //
154 //==========================================================================
155
156 int I_CDMusLastTrack(void)
157 {
158         return 0;
159 }
160
161 //==========================================================================
162 //
163 // I_CDMusShutDown
164 //
165 //==========================================================================
166
167 void I_CDMusShutdown(void)
168 {
169         if(cdfile) close(cdfile);
170 }
171
172 //==========================================================================
173 //
174 // I_CDMusUpdate
175 //
176 //==========================================================================
177
178 void I_CDMusUpdate(void)
179 {
180
181 }              
182