Mercurial > sdl-ios-xcode
annotate src/cdrom/os2/SDL_syscdrom.c @ 1399:c35c161a1100
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 20 Feb 2006 23:18:49 +0000 |
parents | c0a74f199ecf |
children | d910939febfa |
rev | line source |
---|---|
1190 | 1 /* |
2 SDL - Simple DirectMedia Layer | |
1312
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1190
diff
changeset
|
3 Copyright (C) 1997-2006 Sam Lantinga |
1190 | 4 |
5 This library is free software; you can redistribute it and/or | |
1312
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1190
diff
changeset
|
6 modify it under the terms of the GNU Lesser General Public |
1190 | 7 License as published by the Free Software Foundation; either |
1312
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1190
diff
changeset
|
8 version 2.1 of the License, or (at your option) any later version. |
1190 | 9 |
10 This library is distributed in the hope that it will be useful, | |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
1312
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1190
diff
changeset
|
13 Lesser General Public License for more details. |
1190 | 14 |
1312
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1190
diff
changeset
|
15 You should have received a copy of the GNU Lesser General Public |
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1190
diff
changeset
|
16 License along with this library; if not, write to the Free Software |
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1190
diff
changeset
|
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
1190 | 18 |
19 Sam Lantinga | |
20 slouken@libsdl.org | |
21 */ | |
22 | |
23 /* Functions for system-level CD-ROM audio control */ | |
24 | |
25 #define INCL_MCIOS2 | |
26 #include <os2.h> | |
27 #include <os2me.h> | |
28 | |
29 #include "SDL_cdrom.h" | |
1361
19418e4422cb
New configure-based build system. Still work in progress, but much improved
Sam Lantinga <slouken@libsdl.org>
parents:
1358
diff
changeset
|
30 #include "../SDL_syscdrom.h" |
1190 | 31 |
32 /* Size of MCI result buffer (in bytes) */ | |
33 #define MCI_CMDRETBUFSIZE 128 | |
34 | |
35 /* The maximum number of CD-ROM drives we'll detect */ | |
36 #define MAX_DRIVES 16 | |
37 | |
38 /* A list of available CD-ROM drives */ | |
39 static char *SDL_cdlist[MAX_DRIVES]; | |
40 //static dev_t SDL_cdmode[MAX_DRIVES]; | |
41 | |
42 /* The system-dependent CD control functions */ | |
43 static const char *SDL_SYS_CDName(int drive); | |
44 static int SDL_SYS_CDOpen(int drive); | |
45 static int SDL_SYS_CDGetTOC(SDL_CD *cdrom); | |
46 static CDstatus SDL_SYS_CDStatus(SDL_CD *cdrom, int *position); | |
47 static int SDL_SYS_CDPlay(SDL_CD *cdrom, int start, int length); | |
48 static int SDL_SYS_CDPause(SDL_CD *cdrom); | |
49 static int SDL_SYS_CDResume(SDL_CD *cdrom); | |
50 static int SDL_SYS_CDStop(SDL_CD *cdrom); | |
51 static int SDL_SYS_CDEject(SDL_CD *cdrom); | |
52 static void SDL_SYS_CDClose(SDL_CD *cdrom); | |
53 | |
54 /* MCI Timing Functions */ | |
55 #define MCI_MMTIMEPERSECOND 3000 | |
56 #define FRAMESFROMMM(mmtime) (((mmtime)*CD_FPS)/MCI_MMTIMEPERSECOND) | |
57 | |
58 | |
59 /* Ready for MCI CDAudio Devices */ | |
60 int SDL_SYS_CDInit(void) | |
61 { | |
62 int i; /* generig counter */ | |
63 MCI_SYSINFO_PARMS msp; /* Structure to MCI SysInfo parameters */ | |
64 CHAR SysInfoRet[MCI_CMDRETBUFSIZE]; /* Buffer for MCI Command result */ | |
65 | |
66 /* Fill in our driver capabilities */ | |
67 SDL_CDcaps.Name = SDL_SYS_CDName; | |
68 SDL_CDcaps.Open = SDL_SYS_CDOpen; | |
69 SDL_CDcaps.GetTOC = SDL_SYS_CDGetTOC; | |
70 SDL_CDcaps.Status = SDL_SYS_CDStatus; | |
71 SDL_CDcaps.Play = SDL_SYS_CDPlay; | |
72 SDL_CDcaps.Pause = SDL_SYS_CDPause; | |
73 SDL_CDcaps.Resume = SDL_SYS_CDResume; | |
74 SDL_CDcaps.Stop = SDL_SYS_CDStop; | |
75 SDL_CDcaps.Eject = SDL_SYS_CDEject; | |
76 SDL_CDcaps.Close = SDL_SYS_CDClose; | |
77 | |
78 /* Get the number of CD ROMs in the System */ | |
79 /* Clean SysInfo structure */ | |
1336
3692456e7b0f
Use SDL_ prefixed versions of C library functions.
Sam Lantinga <slouken@libsdl.org>
parents:
1312
diff
changeset
|
80 SDL_memset(&msp, 0x00, sizeof(MCI_SYSINFO_PARMS)); |
1190 | 81 /* Prepare structure to Ask Numer of Audio CDs */ |
82 msp.usDeviceType = MCI_DEVTYPE_CD_AUDIO; /* CD Audio Type */ | |
83 msp.pszReturn = (PSZ)&SysInfoRet; /* Return Structure */ | |
84 msp.ulRetSize = MCI_CMDRETBUFSIZE; /* Size of ret struct */ | |
85 if (LOUSHORT(mciSendCommand(0,MCI_SYSINFO, MCI_SYSINFO_QUANTITY | MCI_WAIT, (PVOID)&msp, 0)) != MCIERR_SUCCESS) return(CD_ERROR); | |
86 SDL_numcds = atoi(SysInfoRet); | |
87 if (SDL_numcds > MAX_DRIVES) SDL_numcds = MAX_DRIVES; /* Limit maximum CD number */ | |
88 | |
89 /* Get and Add their system name to the SDL_cdlist */ | |
90 msp.pszReturn = (PSZ)&SysInfoRet; /* Return Structure */ | |
91 msp.ulRetSize = MCI_CMDRETBUFSIZE; /* Size of ret struct */ | |
92 msp.usDeviceType = MCI_DEVTYPE_CD_AUDIO; /* CD Audio Type */ | |
93 for (i=0; i<SDL_numcds; i++) | |
94 { | |
95 msp.ulNumber = i+1; | |
96 mciSendCommand(0,MCI_SYSINFO, MCI_SYSINFO_NAME | MCI_WAIT,&msp, 0); | |
1379
c0a74f199ecf
Use only safe string functions
Sam Lantinga <slouken@libsdl.org>
parents:
1361
diff
changeset
|
97 SDL_cdlist[i] = SDL_strdup(SysInfoRet); |
1190 | 98 if ( SDL_cdlist[i] == NULL ) |
99 { | |
100 SDL_OutOfMemory(); | |
101 return(-1); | |
102 } | |
103 } | |
104 return(0); | |
105 } | |
106 | |
107 /* Return CDAudio System Dependent Device Name - Ready for MCI*/ | |
108 static const char *SDL_SYS_CDName(int drive) | |
109 { | |
110 return(SDL_cdlist[drive]); | |
111 } | |
112 | |
113 /* Open CDAudio Device - Ready for MCI */ | |
114 static int SDL_SYS_CDOpen(int drive) | |
115 { | |
116 MCI_OPEN_PARMS mop; | |
117 MCI_SET_PARMS msp; | |
118 MCI_GENERIC_PARMS mgp; | |
119 | |
120 /* Open the device */ | |
121 mop.hwndCallback = (HWND)NULL; // None | |
122 mop.usDeviceID = (USHORT)NULL; // Will be returned. | |
123 mop.pszDeviceType = (PSZ)SDL_cdlist[drive]; // CDAudio Device | |
124 if (LOUSHORT(mciSendCommand(0,MCI_OPEN,MCI_WAIT,&mop, 0)) != MCIERR_SUCCESS) return(CD_ERROR); | |
125 /* Set time format */ | |
126 msp.hwndCallback = (HWND)NULL; // None | |
127 msp.ulTimeFormat = MCI_FORMAT_MSF; // Minute : Second : Frame structure | |
128 msp.ulSpeedFormat = (ULONG)NULL; // No change | |
129 msp.ulAudio = (ULONG)NULL; // No Channel | |
130 msp.ulLevel = (ULONG)NULL; // No Volume | |
131 msp.ulOver = (ULONG)NULL; // No Delay | |
132 msp.ulItem = (ULONG)NULL; // No item | |
133 msp.ulValue = (ULONG)NULL; // No value for item flag | |
134 if (LOUSHORT(mciSendCommand(mop.usDeviceID,MCI_SET,MCI_WAIT | MCI_SET_TIME_FORMAT,&msp, 0)) == MCIERR_SUCCESS) return (mop.usDeviceID); | |
135 /* Error setting time format? - Close opened device */ | |
136 mgp.hwndCallback = (HWND)NULL; // None | |
137 mciSendCommand(mop.usDeviceID,MCI_CLOSE,MCI_WAIT,&mgp, 0); | |
138 return(CD_ERROR); | |
139 } | |
140 | |
141 /* Get CD Table Of Contents - Ready for MCI */ | |
142 static int SDL_SYS_CDGetTOC(SDL_CD *cdrom) | |
143 { | |
144 MCI_TOC_PARMS mtp; | |
145 MCI_STATUS_PARMS msp; | |
146 MCI_TOC_REC * mtr; | |
147 INT i; | |
148 | |
149 /* Correction because MCI cannot read TOC while CD is playing (it'll stop!) */ | |
150 if (cdrom->status == CD_PLAYING || cdrom->status == CD_PAUSED) return 0; | |
151 | |
152 /* Get Number of Tracks */ | |
153 msp.hwndCallback = (HWND)NULL; /* None */ | |
154 msp.ulReturn = (ULONG)NULL; /* We want this information */ | |
155 msp.ulItem = MCI_STATUS_NUMBER_OF_TRACKS; | |
156 msp.ulValue = (ULONG)NULL; /* No additional information */ | |
157 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_STATUS,MCI_WAIT | MCI_STATUS_ITEM,&msp, 0)) != MCIERR_SUCCESS) return(CD_ERROR); | |
158 cdrom->numtracks = msp.ulReturn; | |
159 if ( cdrom->numtracks > SDL_MAX_TRACKS ) | |
160 { | |
161 cdrom->numtracks = SDL_MAX_TRACKS; | |
162 } | |
163 /* Alocate space for TOC data */ | |
1336
3692456e7b0f
Use SDL_ prefixed versions of C library functions.
Sam Lantinga <slouken@libsdl.org>
parents:
1312
diff
changeset
|
164 mtr = (MCI_TOC_REC *)SDL_malloc(cdrom->numtracks*sizeof(MCI_TOC_REC)); |
1190 | 165 if ( mtr == NULL ) |
166 { | |
167 SDL_OutOfMemory(); | |
168 return(-1); | |
169 } | |
170 /* Get TOC from CD */ | |
171 mtp.pBuf = mtr; | |
172 mtp.ulBufSize = cdrom->numtracks*sizeof(MCI_TOC_REC); | |
173 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_GETTOC,MCI_WAIT,&mtp, 0)) != MCIERR_SUCCESS) | |
174 { | |
175 SDL_OutOfMemory(); | |
1336
3692456e7b0f
Use SDL_ prefixed versions of C library functions.
Sam Lantinga <slouken@libsdl.org>
parents:
1312
diff
changeset
|
176 SDL_free(mtr); |
1190 | 177 return(CD_ERROR); |
178 } | |
179 /* Fill SDL Tracks Structure */ | |
180 for (i=0; i<cdrom->numtracks; i++) | |
181 { | |
182 /* Set Track ID */ | |
183 cdrom->track[i].id = (mtr+i)->TrackNum; | |
184 /* Set Track Type */ | |
185 msp.hwndCallback = (HWND)NULL; /* None */ | |
186 msp.ulReturn = (ULONG)NULL; /* We want this information */ | |
187 msp.ulItem = MCI_CD_STATUS_TRACK_TYPE; | |
188 msp.ulValue = (ULONG)((mtr+i)->TrackNum); /* Track Number? */ | |
189 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_STATUS,MCI_WAIT | MCI_TRACK | MCI_STATUS_ITEM,&msp, 0)) != MCIERR_SUCCESS) | |
190 { | |
1336
3692456e7b0f
Use SDL_ prefixed versions of C library functions.
Sam Lantinga <slouken@libsdl.org>
parents:
1312
diff
changeset
|
191 SDL_free(mtr); |
1190 | 192 return (CD_ERROR); |
193 } | |
194 if (msp.ulReturn==MCI_CD_TRACK_AUDIO) cdrom->track[i].type = SDL_AUDIO_TRACK; | |
195 else cdrom->track[i].type = SDL_DATA_TRACK; | |
196 /* Set Track Length - values from MCI are in MMTIMEs - 3000 MMTIME = 1 second */ | |
197 cdrom->track[i].length = FRAMESFROMMM((mtr+i)->ulEndAddr - (mtr+i)->ulStartAddr); | |
198 /* Set Track Offset */ | |
199 cdrom->track[i].offset = FRAMESFROMMM((mtr+i)->ulStartAddr); | |
200 } | |
1336
3692456e7b0f
Use SDL_ prefixed versions of C library functions.
Sam Lantinga <slouken@libsdl.org>
parents:
1312
diff
changeset
|
201 SDL_free(mtr); |
1190 | 202 return(0); |
203 } | |
204 | |
205 | |
206 /* Get CD-ROM status - Ready for MCI */ | |
207 static CDstatus SDL_SYS_CDStatus(SDL_CD *cdrom, int *position) | |
208 { | |
209 CDstatus status; | |
210 MCI_STATUS_PARMS msp; | |
211 | |
212 /* Get Status from MCI */ | |
213 msp.hwndCallback = (HWND)NULL; /* None */ | |
214 msp.ulReturn = (ULONG)NULL; /* We want this information */ | |
215 msp.ulItem = MCI_STATUS_MODE; | |
216 msp.ulValue = (ULONG)NULL; /* No additional information */ | |
217 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_STATUS,MCI_WAIT | MCI_STATUS_ITEM,&msp, 0)) != MCIERR_SUCCESS) status = CD_ERROR; | |
218 else | |
219 { | |
220 switch(msp.ulReturn) | |
221 { | |
222 case MCI_MODE_NOT_READY: | |
223 status = CD_TRAYEMPTY; | |
224 break; | |
225 case MCI_MODE_PAUSE: | |
226 status = CD_PAUSED; | |
227 break; | |
228 case MCI_MODE_PLAY: | |
229 status = CD_PLAYING; | |
230 break; | |
231 case MCI_MODE_STOP: | |
232 status = CD_STOPPED; | |
233 break; | |
234 /* These cases should not occour */ | |
235 case MCI_MODE_RECORD: | |
236 case MCI_MODE_SEEK: | |
237 default: | |
238 status = CD_ERROR; | |
239 break; | |
240 } | |
241 } | |
242 | |
243 /* Determine position */ | |
244 if (position != NULL) /* The SDL $&$&%# CDROM call sends NULL pointer here! */ | |
245 { | |
246 if ((status == CD_PLAYING) || (status == CD_PAUSED)) | |
247 { | |
248 /* Get Position */ | |
249 msp.hwndCallback = (HWND)NULL; /* None */ | |
250 msp.ulReturn = (ULONG)NULL; /* We want this information */ | |
251 msp.ulItem = MCI_STATUS_POSITION; | |
252 msp.ulValue = (ULONG)NULL; /* No additiona info */ | |
253 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_STATUS,MCI_WAIT | MCI_STATUS_ITEM,&msp, 0)) != MCIERR_SUCCESS) return (CD_ERROR); | |
254 /* Convert from MSF (format selected in the Open process) to Frames (format that will be returned) */ | |
255 *position = MSF_TO_FRAMES(MSF_MINUTE(msp.ulReturn),MSF_SECOND(msp.ulReturn),MSF_FRAME(msp.ulReturn)); | |
256 } | |
257 else *position = 0; | |
258 } | |
259 return(status); | |
260 } | |
261 | |
262 /* Start play - Ready for MCI */ | |
263 static int SDL_SYS_CDPlay(SDL_CD *cdrom, int start, int length) | |
264 { | |
265 MCI_GENERIC_PARMS mgp; | |
266 MCI_STATUS_PARMS msp; | |
267 MCI_PLAY_PARMS mpp; | |
268 ULONG min,sec,frm; | |
269 | |
270 /* Start MSF */ | |
271 FRAMES_TO_MSF(start, &min, &sec, &frm); | |
272 MSF_MINUTE(mpp.ulFrom) = min; | |
273 MSF_SECOND(mpp.ulFrom) = sec; | |
274 MSF_FRAME(mpp.ulFrom) = frm; | |
275 /* End MSF */ | |
276 FRAMES_TO_MSF(start+length, &min, &sec, &frm); | |
277 MSF_MINUTE(mpp.ulTo) = min; | |
278 MSF_SECOND(mpp.ulTo) = sec; | |
279 MSF_FRAME(mpp.ulTo) = frm; | |
280 #ifdef DEBUG_CDROM | |
281 fprintf(stderr, "Trying to play from %d:%d:%d to %d:%d:%d\n", | |
282 playtime.cdmsf_min0, playtime.cdmsf_sec0, playtime.cdmsf_frame0, | |
283 playtime.cdmsf_min1, playtime.cdmsf_sec1, playtime.cdmsf_frame1); | |
284 #endif | |
285 /* Verifies if it is paused first... and if it is, unpause before stopping it. */ | |
286 msp.hwndCallback = (HWND)NULL; /* None */ | |
287 msp.ulReturn = (ULONG)NULL; /* We want this information */ | |
288 msp.ulItem = MCI_STATUS_MODE; | |
289 msp.ulValue = (ULONG)NULL; /* No additional information */ | |
290 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_STATUS,MCI_WAIT | MCI_STATUS_ITEM,&msp, 0)) == MCIERR_SUCCESS) | |
291 { | |
292 if (msp.ulReturn == MCI_MODE_PAUSE) | |
293 { | |
294 mgp.hwndCallback = (HWND)NULL; // None | |
295 mciSendCommand(cdrom->id,MCI_RESUME,NULL,&mgp, 0); | |
296 } | |
297 } | |
298 /* Now play it. */ | |
299 mpp.hwndCallback = (HWND)NULL; // We do not want the info. temp | |
300 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_PLAY,MCI_FROM | MCI_TO,&mpp, 0)) == MCIERR_SUCCESS) return 0; | |
301 return (CD_ERROR); | |
302 } | |
303 | |
304 /* Pause play - Ready for MCI */ | |
305 static int SDL_SYS_CDPause(SDL_CD *cdrom) | |
306 { | |
307 MCI_GENERIC_PARMS mgp; | |
308 | |
309 mgp.hwndCallback = (HWND)NULL; // None | |
310 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_PAUSE,MCI_WAIT,&mgp, 0)) == MCIERR_SUCCESS) return 0; | |
311 return(CD_ERROR); | |
312 } | |
313 | |
314 /* Resume play - Ready for MCI */ | |
315 static int SDL_SYS_CDResume(SDL_CD *cdrom) | |
316 { | |
317 MCI_GENERIC_PARMS mgp; | |
318 | |
319 mgp.hwndCallback = (HWND)NULL; // None | |
320 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_RESUME,MCI_WAIT,&mgp, 0)) == MCIERR_SUCCESS) return 0; | |
321 return(CD_ERROR); | |
322 } | |
323 | |
324 /* Stop play - Ready for MCI */ | |
325 static int SDL_SYS_CDStop(SDL_CD *cdrom) | |
326 { | |
327 MCI_GENERIC_PARMS mgp; | |
328 MCI_STATUS_PARMS msp; | |
329 | |
330 /* Verifies if it is paused first... and if it is, unpause before stopping it. */ | |
331 msp.hwndCallback = (HWND)NULL; /* None */ | |
332 msp.ulReturn = (ULONG)NULL; /* We want this information */ | |
333 msp.ulItem = MCI_STATUS_MODE; | |
334 msp.ulValue = (ULONG)NULL; /* No additional information */ | |
335 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_STATUS,MCI_WAIT | MCI_STATUS_ITEM,&msp, 0)) == MCIERR_SUCCESS) | |
336 { | |
337 if (msp.ulReturn == MCI_MODE_PAUSE) | |
338 { | |
339 mgp.hwndCallback = (HWND)NULL; // None | |
340 mciSendCommand(cdrom->id,MCI_RESUME,NULL,&mgp, 0); | |
341 } | |
342 } | |
343 /* Now stops the media */ | |
344 mgp.hwndCallback = (HWND)NULL; // None | |
345 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_STOP,MCI_WAIT,&mgp, 0)) == MCIERR_SUCCESS) return 0; | |
346 return(CD_ERROR); | |
347 } | |
348 | |
349 /* Eject the CD-ROM - Ready for MCI */ | |
350 static int SDL_SYS_CDEject(SDL_CD *cdrom) | |
351 { | |
352 MCI_SET_PARMS msp; | |
353 | |
354 msp.hwndCallback = (HWND)NULL; // None | |
355 msp.ulTimeFormat = (ULONG)NULL; // No change | |
356 msp.ulSpeedFormat = (ULONG)NULL; // No change | |
357 msp.ulAudio = (ULONG)NULL; // No Channel | |
358 msp.ulLevel = (ULONG)NULL; // No Volume | |
359 msp.ulOver = (ULONG)NULL; // No Delay | |
360 msp.ulItem = (ULONG)NULL; // No item | |
361 msp.ulValue = (ULONG)NULL; // No value for item flag | |
362 if (LOUSHORT(mciSendCommand(cdrom->id,MCI_SET,MCI_WAIT | MCI_SET_DOOR_OPEN,&msp, 0)) == MCIERR_SUCCESS) return 0; | |
363 return(CD_ERROR); | |
364 } | |
365 | |
366 /* Close the CD-ROM handle - Ready for MCI */ | |
367 static void SDL_SYS_CDClose(SDL_CD *cdrom) | |
368 { | |
369 MCI_GENERIC_PARMS mgp; | |
370 | |
371 mgp.hwndCallback = (HWND)NULL; // None | |
372 mciSendCommand(cdrom->id,MCI_CLOSE,MCI_WAIT,&mgp, 0); | |
373 } | |
374 | |
375 /* Finalize CDROM Subsystem - Ready for MCI */ | |
376 void SDL_SYS_CDQuit(void) | |
377 { | |
378 int i; | |
379 | |
380 if ( SDL_numcds > 0 ) | |
381 { | |
382 for ( i=0; i<SDL_numcds; ++i ) | |
383 { | |
1336
3692456e7b0f
Use SDL_ prefixed versions of C library functions.
Sam Lantinga <slouken@libsdl.org>
parents:
1312
diff
changeset
|
384 SDL_free(SDL_cdlist[i]); |
1190 | 385 } |
386 SDL_numcds = 0; | |
387 } | |
388 } | |
389 |