version 1.43, 2006/01/09 04:05:43 |
version 1.44, 2006/01/09 05:48:35 |
|
|
char *strstatus(int); |
char *strstatus(int); |
int cdid(void); |
int cdid(void); |
void addmsf(u_int *, u_int *, u_int *, u_char, u_char, u_char); |
void addmsf(u_int *, u_int *, u_int *, u_char, u_char, u_char); |
|
int cmpmsf(u_char, u_char, u_char, u_char, u_char, u_char); |
void toc2msf(u_int, u_char *, u_char *, u_char *); |
void toc2msf(u_int, u_char *, u_char *, u_char *); |
|
|
void |
void |
|
|
|
|
toc2msf(tr1+1, &tm, &ts, &tf); |
toc2msf(tr1+1, &tm, &ts, &tf); |
|
|
if ((m1 > tm) |
if (cmpmsf(m1, s1, f1, tm, ts, tf) == 1) { |
|| ((m1 == tm) |
|
&& ((s1 > ts) |
|
|| ((s1 == ts) |
|
&& (f1 > tf))))) { |
|
printf("Track %d is not that long.\n", tr1); |
printf("Track %d is not that long.\n", tr1); |
return (0); |
return (0); |
} |
} |
|
|
|
|
toc2msf(n+1, &tm, &ts, &tf); |
toc2msf(n+1, &tm, &ts, &tf); |
|
|
if ((tr2 < n) |
if (tr2 < n && cmpmsf(m2, s2, f2, tm, ts, tf) == 1) { |
&& ((m2 > tm) |
|
|| ((m2 == tm) |
|
&& ((s2 > ts) |
|
|| ((s2 == ts) |
|
&& (f2 > tf)))))) { |
|
printf("The playing time of the disc is not that long.\n"); |
printf("The playing time of the disc is not that long.\n"); |
return (0); |
return (0); |
} |
} |
|
|
} |
} |
|
|
*m += m_inc; |
*m += m_inc; |
|
} |
|
|
|
int |
|
cmpmsf(u_char m1, u_char s1, u_char f1, u_char m2, u_char s2, u_char f2) |
|
{ |
|
if (m1 > m2) |
|
return (1); |
|
else if (m1 < m2) |
|
return (-1); |
|
|
|
if (s1 > s2) |
|
return (1); |
|
else if (s1 < s2) |
|
return (-1); |
|
|
|
if (f1 > f2) |
|
return (1); |
|
else if (f1 < f2) |
|
return (-1); |
|
|
|
return (0); |
} |
} |
|
|
void |
void |