From 6e17c610c658cea7124576b4119f6a830b925a9f Mon Sep 17 00:00:00 2001 From: Pixel Date: Thu, 29 Aug 2002 07:59:56 +0000 Subject: Nighty commit --- lib/cdreader.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/cdreader.cpp b/lib/cdreader.cpp index 59c8127..d705e01 100644 --- a/lib/cdreader.cpp +++ b/lib/cdreader.cpp @@ -49,14 +49,14 @@ off_t cdreader::seek(off_t offset, int whence) throw (GeneralException) { } ssize_t cdreader::read(void *buf, size_t count) throw (GeneralException) { - char sector[CD_FRAMESIZE_RAW]; + char sector[2352]; size_t r = count; - size_t remain = itell % CD_FRAMESIZE_RAW; - sectorseek(itell / CD_FRAMESIZE_RAW); + size_t remain = itell % 2352; + sectorseek(itell / 2352); while (count > 0) { - size_t n = MIN(CD_FRAMESIZE_RAW - remain, count); + size_t n = MIN(2352 - remain, count); getsector(sector); bcopy(sector + remain, buf, n); buf = ((char *) buf) + n; -- cgit v1.2.3