Solved

Recognizing a specefic music CD (custom file).

Posted on 1997-04-19
2
136 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Comparing dates in Delphi. Greater than/ Less than 3 300
creating threads in delphi 1 166
Firemonkey webbrowser scrollbars ? 1 57
Tidtcpserver listening on multiports? 1 46
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

730 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