Solved

cd-rom data block read

Posted on 1997-07-20
2
191 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
2 Comments
 
LVL 1

Accepted Solution

by:
Paul B earned 100 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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 video discusses moving either the default database or any database to a new volume.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now