Solved

cd-rom data block read

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
unable to delete all specified values regedit 38 728
sumNumber challenge 16 140
c++  placing data into a form and an editbox 5 24
Adjust the codes 3 33
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.

733 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