Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

cd-rom data block read

Posted on 1997-07-20
2
Medium Priority
?
198 Views
Last Modified: 2013-12-26
What is the command to read blocks of data off a cd-rom?  I cannot find any such command in the Apple DV22 (CD-ROM driver calls) manual.  You can read blocks of audio in using the READAUDIO (csParam=115).  Does anyone know what to set csParam equal to in order to get data instead of audio??
0
Comment
Question by:meyerkl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
Paul B earned 300 total points
ID: 1291595
Hi,
  if you want to read data from a CD then issue a PBRead with
        PBlock.ioVRefNum = drive number of CD;
        PBlock.ioRefNum =   driver refnum ;
        PBlock.ioCompletion = nil;
        PBlock.ioBuffer = buffer;
        PBlock.ioPosMode = 1;
        PBlock.ioReqCount = 512 * number of blocks;
        PBlock.ioPosOffset = 0;
         
     Paul B
0
 

Author Comment

by:meyerkl
ID: 1291596
i notice you used 512 to multiply the number of blocks.  If i increase the block size to say 1024, would i just change that to be 1024 times the number of blocks.
also, the PBRead call as i understand it, will read in the current block.  how would i reposition the pickup to read in separate blocks??

thanks
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question