Solved

CD-Player

Posted on 1997-10-29
3
217 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
  • 2
3 Comments
 

Accepted Solution

by:
berox earned 100 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Enable/Disable the Windows 7 'START' button 9 1,431
Youtube stream inside Delphi 1 1,420
Compare of Excelsheets 41 360
Lazarus and Excel formulas via OLE 7 219
Marketing can be an uncomfortable undertaking, especially if your material is technology based. Luckily, we’ve compiled some simple and (relatively) painless tips to put an end to your trepidation and start your path to success.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

772 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

10 Experts available now in Live!

Get 1:1 Help Now