Solved

CD-Player

Posted on 1997-10-29
3
222 Views
Last Modified: 2012-05-04
Do you have any routines for playing sound from a mixed CD-ROM or Audio-CD while my programming is running ?
Please try, to give me some example sources.

Thanx, Roger Bieri
0
Comment
Question by:omsec
[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
3 Comments
 

Accepted Solution

by:
berox earned 100 total points
ID: 1216380
You should just send the play command to the CD driver.
DOn't know out of my head what the exact commands are , but if you could wait till' after the weekend I send you some example source ...
0
 
LVL 1

Expert Comment

by:FuzzyLogic
ID: 1216381
Berox - You should not lock question that you don't have the answer for it.

Omsec, You should send the "Play Audio" request. The request is sent that way:
  A. Make a table that look like this:
       00 Lenght of Table
       01 Subunit (=1)
       02 Command
       03 Status (2 bytes)
       05 nothing (8 bytes)
       0D Mode (=0)
       0E StartSector (4 bytes)
       12  NumberOfSectors (4 bytes)
     The numbers are the address in table (Hex).
     This table will be used to play, stop or resume audio.

  B. To play audio:
       Command=84h
       Lendth=14h
     To stop audio:
       Command=85h
       Length=0Dh
       (fields 0Dh-12h are not used).
     To resume audio:
       Command=88h
       Lenght=0Dh
       (fields 0Dh-12h are not used).

  C. Now call the interrupt:
      asm;
        MOV AX,1510h
        MOV CX,4             ; CDROM drive (E:=4)
        LES BX,PTable ; pointer to the table
        INT 2Fh
      end;

To get the starting sector of a track you should send a request to the CD device-driver, using interrupt 21 service 4402h

That was all the story.


0
 
LVL 1

Expert Comment

by:FuzzyLogic
ID: 1216382
I think those points are belong to me...
Berox - I don't think this is the way that "Experts-Exchange" should work.

Next time, if you don't have an answer to a question, DO NOT lock the question. If anyone will act like this, no one will answer the questions.

You can comment me at fuzzy_logic@usa.net
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

The conference as a whole was very interesting, although if one has to make a choice between this one and some others, you may want to check out the others.  This conference is aimed mainly at government agencies.  So it addresses the various compli…
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
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…

728 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