Solved

CD-Player

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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

This problem is more common than not and I will show you some things to check to solve this problem.
As a business owner, there are many things that keep you up at night. Profit margins, employee retention, human resource protocols, whether your product or service will remain competitive. When you own or manage a technology company that operates la…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

777 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