About Device Filenames

Since there's no automatic way to update script-channel text when a multimedia application is installed, you should avoid specifying absolute directory paths for multimedia data files you open using MCI. For example, the following open command depends on the CD-ROM drive being mapped to drive Q:

mci "open Q:\NABIRDS\MOCKBIRD.WAV type waveaudio alias mbird"

At author time, you have no way of knowing which drive letter will be mapped as the user's CD-ROM drive. Also, the installation program for your title will probably allow the user to specify the directory name for the title files.

By omitting the directory and drive name and using only the filename (for example, MOCKING.WAV) or a relative path name (for example, BIRDCALLS\MOCKING.WAV), your MCI open commands will be correct regardless of drive mappings or installation directories. Your multimedia application just needs to change directories to the appropriate base directory before starting the movie.

For example, you might store all Waveform audio files in a BIRDCALL directory located off the base directory (for example, D:\NABIRDS) for your application files. In this case, the following MCI open command succeeds, assuming your application changes to directory D:\NABIRDS before starting the movie:

mci "open BIRDCALL\MOCKBIRD.WAV type waveaudio alias mbird"