summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPixel <Pixel>2002-08-29 07:59:56 +0000
committerPixel <Pixel>2002-08-29 07:59:56 +0000
commit6e17c610c658cea7124576b4119f6a830b925a9f (patch)
treef463f1d95e364d1cf77df98eed6661310ab76f05 /lib
parent6adca8421211f68f3838966cf70945d538476857 (diff)
Nighty commit
Diffstat (limited to 'lib')
-rw-r--r--lib/cdreader.cpp8
1 files changed, 4 insertions, 4 deletions
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;