>Is there a windows DLL that contains functions to play,stop,etc audio CDs?
>I tried to track down what DLLs the CDPLAYER applet in WIN95 uses, but the
>closest thing I could find was WINMM.DLL. I couldn't make anything out of
>it. Even if there were functions to use in it, I wouldn't know how to call
>them. Anybody have any experience with this?
I've found this on some last year's MSDN CD (some day we'll discover
we're half-speaking, half-spelling).
PUBLIC cdstat,junk,lastrack
cdstat=SPACE(50)
junk=" "
DECLARE INTEGER "mciSendString" IN winmm.dll STRING, STRING, INTEGER,
INTEGER
=mciSendString("Open CDAudio", @junk, 0,0)
=mciSendString("Set CDAudio time format tmsf", @junk, 0,0)
=mciSendString("status CDAudio number of tracks", @cdstat, 50,0)
lastrack=VAL(ALLTRIM(cdstat))
This is an excerpt from .init of cdplay.scx found there.