annotate test/.cvsignore @ 1524:38a12fd1a2c1

Fixed bug #46 Date: Fri, 13 Jan 2006 18:09:45 -0500 From: mhall4400 vipmail kvcc edu Subject: Possible SDL bug Greetings I believe Ive come across a bug in your SDL product (1.2.9), in the CD-ROM control portion of the library. When calling the SDL_CDPlay() function to play the last track of a CD using the offset and length from an SDL_CD structure generated by SDL_CDOpen(), I get the following error from a call to SDL_Error(): mciSendCommand() error: The specified parameter is out of range for the specified command. The code returning the error is: SDL_CDPlay(g_playingDriveSDLCD, g_playingDriveSDLCD->track[trackNumberInt].offset, g_playingDriveSDLCD->track[trackNumberInt].length) Subtracting one from the length of the provided length seems to repair the problem: SDL_CDPlay(g_playingDriveSDLCD, g_playingDriveSDLCD->track[trackNumberInt].offset, (g_playingDriveSDLCD->track[trackNumberInt].length) - 1) Ive replicated this problem on Windows 98 SE (several months since last patch), fully-patched Window ME, seldom-patched Windows XP SP1, and fully-patched Windows XP SP2. While investigating the issue, I came across a line in your librarys win32 source code in file \src\cdrom\win32\SDL_syscdrom.c (source code zip archive from your download page), function: SDL_SYS_CDGetTOC(), line 226 where you add 1 to the value for length to fix MCI last track length bug. This may be the source of the issue (because subtracting 1 from the length seems to resolve the issue). Microsoft may have patched the referenced bug since you wrote that line. Mike Hall
author Sam Lantinga <slouken@libsdl.org>
date Tue, 14 Mar 2006 05:34:39 +0000
parents 7b4b31075f67
children
rev   line source
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents: 1285
diff changeset
1 aclocal.m4
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents: 1285
diff changeset
2 autom4te*
416
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
3 config.cache
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
4 config.log
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
5 config.status
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents: 1285
diff changeset
6 configure
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents: 1285
diff changeset
7 Makefile
1285
c9ae23d221ea *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1249
diff changeset
8 SDL.dll
c9ae23d221ea *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1249
diff changeset
9 stdout.txt
c9ae23d221ea *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1249
diff changeset
10 stderr.txt
416
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
11 checkkeys
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
12 graywin
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
13 loopwave
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
14 testalpha
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
15 testbitmap
1249
e6a82dcdce09 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 817
diff changeset
16 testblitspeed
416
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
17 testcdrom
1249
e6a82dcdce09 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 817
diff changeset
18 testdyngl
416
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
19 testerror
1484
b2b476a4a73c Added documentation on how to build a completely useless SDL library. :)
Sam Lantinga <slouken@libsdl.org>
parents: 1380
diff changeset
20 testfile
416
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
21 testgamma
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
22 testgl
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
23 testhread
1504
7b4b31075f67 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1485
diff changeset
24 testiconv
416
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
25 testjoystick
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
26 testkeys
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
27 testlock
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
28 testoverlay
676
8b58eeef4576 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 416
diff changeset
29 testoverlay2
416
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
30 testpalette
1484
b2b476a4a73c Added documentation on how to build a completely useless SDL library. :)
Sam Lantinga <slouken@libsdl.org>
parents: 1380
diff changeset
31 testplatform
416
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
32 testsem
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
33 testsprite
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
34 testtimer
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
35 testver
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
36 testvidinfo
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
37 testwin
6b0363ceaba2 *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 0
diff changeset
38 testwm
1485
e507811313ee *** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents: 1484
diff changeset
39 threadwin
1380
d94b080ff6ce Completely removed dependency on automake
Sam Lantinga <slouken@libsdl.org>
parents: 1285
diff changeset
40 torturethread