Solved

Recognizing a specefic music CD (custom file).

Posted on 1997-04-19
2
139 Views
Last Modified: 2010-04-04
The win95 cd program has the capability to recognize a specefic music CD when it is entered.  You are then able to type in the group & songs so that they can be called up from the database next time the cd is put in the cd-rom.  I can handle the database side, but from my understanding there is a windows api call that will either find a certain number or have a formula for generating a certain unique number for each cd. I need to know what this call is, how to use it to generate/find the number on the music CD. So that it will recognize that it is a new CD the first time a certain CD is entered in the CDrom and will recognize a cd that is already in the database.If you have heard of Custom File in a home or Car CD player, basically, that is what I am trying to accomplish.Thanks.
0
Comment
Question by:kros041997
[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 3

Expert Comment

by:mheacock
ID: 1335501
I was under the impression that the matching was done simply
on number of tracks and length (in time) of the CD, based on
the fact that the odds of having two CDs with the same number
of tracks and the same length (in time) was pretty darn slim.
0
 
LVL 4

Accepted Solution

by:
erajoj earned 100 total points
ID: 1335502
Use this API-call to retrieve the MCI_INFO:
MCIERROR mciSendCommand(MCIDEVICEID wDeviceID, MCI_INFO,
DWORD dwFlags, (DWORD) (LPMCI_INFO_PARMS) lpInfo);

Just search for MCI_INFO in the Win32 help and you'll
see how to implement it.

Undefinded constants in D2:
const
  MCI_INFO_PRODUCT                = $00000100;
  MCI_INFO_FILE                   = $00000200;
  MCI_INFO_MEDIA_UPC              = $00000400;
  MCI_INFO_MEDIA_IDENTITY         = $00000800;
  MCI_INFO_NAME                   = $00001000;
  MCI_INFO_COPYRIGHT              = $00002000;

Parameter block for MCI_INFO command message:

type
  PMCI_Info_ParmsA = ^TMCI_Info_ParmsA;
  PMCI_Info_ParmsW = ^TMCI_Info_ParmsW;
  PMCI_Info_Parms = PMCI_Info_ParmsA;
  TMCI_Info_ParmsA = record
    dwCallback: DWORD;
    lpstrReturn: PAnsiChar;
    dwRetSize: DWORD;
  end;
  TMCI_Info_ParmsW = record
    dwCallback: DWORD;
    lpstrReturn: PWideChar;
    dwRetSize: DWORD;
  end;
  TMCI_Info_Parms = TMCI_Info_ParmsA;

I can't help you more unless I write the complete code
for you :-)
0

Featured Post

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month5 days, 5 hours left to enroll

636 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