I just don’t understand it. I’ve seen it in action, so I know it’s slow, but that doesn’t make the reasons any clearer. I mean, the Windows 95/98 CD Player used MCI to play CDs, and that had a track timer. I’d say maybe it was emulated with a Windows timer (or even GetTickCount) except for one minor detail–if you hit the CD-ROM drive, causing the CD to skip, the track time would update accordingly…
There must be a way to make it so it’s not so damned slow… I mean, if MS did it, FMOD can too, right?
…and supposing someone wants to make a CD player application with FMOD? FMOD may have been designed for games, but it’s been applied in many other situations too. Besides, CD playback [i:1bpaz52g]isn’t[/i:1bpaz52g] very important to me at all–I just want to know the reason for some things.
You don’t have to hit a drive very hard to cause the CD to skip; they have absolutely no skip protection. However, that’s not the reason I brought that topic up. I stated that to make a point–how is it that Win95/Win98’s CD player can [i:1bpaz52g]always[/i:1bpaz52g] show the correct track time accurately, no matter what happens? It must use an MCI function similar to GetTrackTime… and in cdplayer.exe’s case, there’s no delay involved.
Thanks for clearing that up for me, Brett. It doesn’t really matter to me, honestly; I was just curious. One thing though… about the code…
[quote:38v9s1yt]mciSendCommand(device->MciID, MCI_STATUS, MCI_STATUS_ITEM | MCI_NOTIFY, (DWORD)(LPVOID)&mciStatusParms)[/quote:38v9s1yt]
Why the double-typecast? It’s perfectly legal to just do b:38v9s1yt&mciStatusParms[/b:38v9s1yt]…
Hmph. [b:38v9s1yt]You can get off my back now about having alternatives.[/b:38v9s1yt] I don’t personally need the CD commands, honestly. Eesh. Aren’t I entitled to my curiousity around here?
Hehehe. Yeah, MS is weird with that. They seem to like nested typecasts–I’ve noticed it with all MS code examples. Don’t mind me; I don’t mean to judge coding styles, it’s just that multiple typecasts on one variable drive me up a wall so it stuck out like a sore thumb.
Please login first to submit.