Skip to content

Commit

Permalink
Date: Thu, 11 Mar 2004 18:45:17 +0900
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Mar 11, 2004
1 parent be0d31e commit ab28c47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cdrom/osf/SDL_syscdrom.c
Expand Up @@ -393,13 +393,12 @@ static int SDL_SYS_CDPlay(SDL_CD *cdrom, int start, int length)
int end;

bzero(&msf, sizeof(msf));
start += 150; /* Some CD-ROM drives cannot play the first 150 frames. */
end = start +length;
FRAMES_TO_MSF(start,
FRAMES_TO_MSF(start + 150, /* LBA = 4500*M + 75*S + F - 150 */
&msf.msf_starting_M_unit,
&msf.msf_starting_S_unit,
&msf.msf_starting_F_unit);
FRAMES_TO_MSF(end,
FRAMES_TO_MSF(end + 150, /* LBA = 4500*M + 75*S + F - 150 */
&msf.msf_ending_M_unit,
&msf.msf_ending_S_unit,
&msf.msf_ending_F_unit);
Expand Down Expand Up @@ -449,3 +448,4 @@ void SDL_SYS_CDQuit(void)
}
}


0 comments on commit ab28c47

Please sign in to comment.