glossary.texi: CDTEXT -> CD Text

util.h: allow getting larger sector count sizes. CD's new 900MB could exceed
16-bits.
This commit is contained in:
rocky
2005-04-27 23:31:47 +00:00
parent adc1418cbd
commit 5b0aecf817
2 changed files with 6 additions and 6 deletions

View File

@@ -185,7 +185,7 @@ programming than an MSF.
@item Lead in @item Lead in
@cindex lead in @cindex lead in
The area of a CD where the Table Of Contents (TOC) and CDTEXT are The area of a CD where the Table Of Contents (TOC) and CD Text are
stored. I think it is supposed to be around 4500 (1 min) or more stored. I think it is supposed to be around 4500 (1 min) or more
sectors in length. On a CDR(W) the lead-in length is variable, sectors in length. On a CDR(W) the lead-in length is variable,
because each manufacturer will have a different starting position because each manufacturer will have a different starting position

View File

@@ -1,5 +1,5 @@
/* /*
$Id: util.h,v 1.7 2005/02/28 02:05:19 rocky Exp $ $Id: util.h,v 1.8 2005/04/27 23:31:47 rocky Exp $
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org> Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
Copyright (C) 2004, 2005 Rocky Bernstein <rocky@panix.com> Copyright (C) 2004, 2005 Rocky Bernstein <rocky@panix.com>
@@ -42,12 +42,12 @@
#undef CLAMP #undef CLAMP
#define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x))) #define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
static inline uint16_t static inline uint32_t
_cdio_len2blocks (unsigned int i_len, uint16_t i_blocksize) _cdio_len2blocks (uint32_t i_len, uint16_t i_blocksize)
{ {
uint16_t i_blocks; uint32_t i_blocks;
i_blocks = i_len / i_blocksize; i_blocks = i_len / (uint32_t) i_blocksize;
if (i_len % i_blocksize) if (i_len % i_blocksize)
i_blocks++; i_blocks++;