Solved

cd-rom data block read

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

734 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