The information in this article applies to:
SUMMARY
This technical article describes a simple technique that uses the
Media Control Interface (MCI) to synchronize events in a Microsoft
Windows-based application with audio from a CD. The following topics
are covered:
MORE INFORMATIONThe following file is available for download from the Microsoft
Download Center. Click the file name below to download the file: Singacd.exeFor more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. Four pieces of sample code included with this article create four applications: PLAYACD, a simple CD controller; SINGACD, a sing-along application that shows the lyrics to a CD as it plays; TIMEACD, an authoring tool to create the lyric files used by the sing-along application; and SINGAWAV, an application that demonstrates synchronizing to a waveform. The SINGACD sample application shows how to use the media control interface (MCI) to synchronize an application with CD audio in Microsoft(R) Windows(TM). SINGACD displays a moving ball above the lyrics of a song. The ball moves in time with the music and (ideally) stays above the current word in the song. Achieving this synchronization involves a two-part process: The first part involves displaying the entire line of text at the right time; the second part involves placing the ball over the correct word in the line. SINGACD has the following components:
Additional query words: kbfile softlib SINGACD.EXE
Keywords : kbfile kbmm kbsample kb16bitonly kbWinOS310 MMCDROM |
Last Reviewed: December 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |