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