Solved

cd-rom data block read

Posted on 1997-07-20
2
192 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Perl Awk Need Help 3 109
move a line in eclipse 3 80
Hibernate methods 2 68
Way to decrease size of apk file 9 42
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: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

914 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

19 Experts available now in Live!

Get 1:1 Help Now