Date: Thu, 11 Mar 2004 18:45:17 +0900
authorSam Lantinga <slouken@libsdl.org>
Thu, 11 Mar 2004 12:59:41 +0000
changeset 8749719e7f51a3a
parent 873 89666943c598
child 875 c2ff9786fbba
Date: Thu, 11 Mar 2004 18:45:17 +0900
From: Hayashi Naoyuki
Subject: Re: Tru64 cdrom and pthread option fix

I wrote
/* Some CD-ROM drives cannot play the first 150 frames. */
in src/cdrom/osf/SDL_syscdrom.c
and
Some CD-ROM drives(ex. TEAC CD-532E) cannot play first 150 frames(aka gap).

but this is not right.

It is written in MMC that LBA = 4500*M + 75*S + F - 150.
src/cdrom/osf/SDL_syscdrom.c
     1.1 --- a/src/cdrom/osf/SDL_syscdrom.c	Sun Mar 07 16:40:15 2004 +0000
     1.2 +++ b/src/cdrom/osf/SDL_syscdrom.c	Thu Mar 11 12:59:41 2004 +0000
     1.3 @@ -393,13 +393,12 @@
     1.4      int end;
     1.5  
     1.6      bzero(&msf, sizeof(msf));
     1.7 -    start += 150; /* Some CD-ROM drives cannot play the first 150 frames. */
     1.8      end = start +length;
     1.9 -    FRAMES_TO_MSF(start,
    1.10 +    FRAMES_TO_MSF(start + 150, /* LBA = 4500*M + 75*S + F - 150 */
    1.11  		  &msf.msf_starting_M_unit,
    1.12  		  &msf.msf_starting_S_unit,
    1.13  		  &msf.msf_starting_F_unit);
    1.14 -    FRAMES_TO_MSF(end,
    1.15 +    FRAMES_TO_MSF(end + 150, /* LBA = 4500*M + 75*S + F - 150 */
    1.16  		  &msf.msf_ending_M_unit,
    1.17  		  &msf.msf_ending_S_unit,
    1.18  		  &msf.msf_ending_F_unit);
    1.19 @@ -449,3 +448,4 @@
    1.20      }
    1.21  }
    1.22  
    1.23 +