Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Recognizing a specefic music CD (custom file).

Posted on 1997-04-19
2
Medium Priority
?
141 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
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 200 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

Industry Leaders: 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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses

971 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