The multimedia system supports sharing of physical devices among multiple applications. If a device is capable of being shared; that is, if it can maintain state information, the system can establish a unique device state, much like a Presentation Manager device context, for each application that uses the device.
The scope of a device state is defined by each device. The state of a simple device like the digital video player contains information about the current frame position, whether the device is playing or stopped, what its current playback speed is set to, and so on. The state of a compound device can include the name of the currently selected file, RIFF object, and playback position.
Media devices vary in their ability to support multiple device contexts concurrently. The different types of device use that are supported by media devices are:
The following table contains descriptions and examples of these device use types.
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿³Context Use Type ³Description ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³Fixed single-context ³A fixed single-context device can establish ³ ³ ³only one device context. The state of a ³ ³ ³fixed single-context device cannot be queried³ ³ ³or set by software. ³ ³ ³An example of a fixed single-context device ³ ³ ³is a video cassette recorder that does not ³ ³ ³report the tape position to the driver. ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³Dynamic single-context ³A dynamic single-context device is serially ³ ³ ³shareable. That is, the device can be used by³ ³ ³only one application at a time but can be ³ ³ ³passed from one application to another. A ³ ³ ³device state for each application is saved ³ ³ ³and restored appropriately. ³ ³ ³This is the most common concurrent use type ³ ³ ³for a media device. An example of a dynamic ³ ³ ³single-context device is a CD-ROM player. ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³Limited multiple-context ³A limited multiple-context device can ³ ³ ³establish multiple device contexts, but the ³ ³ ³number of device contexts is limited by the ³ ³ ³physical device. ³ ³ ³An example of a limited multiple-context ³ ³ ³device is a 4-channel amp-mixer audio device,³ ³ ³which can concurrently support any of the ³ ³ ³following multiple-contexts: ³ ³ ³Four monaural contexts, two stereo contexts, ³ ³ ³and one stereo and two monaural contexts. ³ ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´ ³Unlimited context ³An unlimited context device can support an ³ ³ ³arbitrary number of concurrent device ³ ³ ³contexts. The number of concurrent contexts ³ ³ ³is limited only by the resource limits of the³ ³ ³system. ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ