Solved

CD-Player

Posted on 1997-10-29
3
221 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Tstream to hex 1 1,754
Delphi Thead Pool or (only run last procedure called) 13 810
loading dll from external path 1 279
problem when i try to pack my dll file with upx 9 79
While it may be true that the internet is a place of possibilities, it is also a hostile environment lurking with many dangers. By clicking on the wrong link, trusting the wrong person or using a weak password, you are virtually inviting hackers to …
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…

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