The OS/2 multimedia system provides a number of system-wide values that can be queried and set by applications. Because OS/2 multimedia applications such as Volume Control and Multimedia Setup allow users to set system values, it is recommended that applications only query the settings users have selected. The following table describes the system values that can be queried and set using mciQuerySysValue and mciSetSysValue.

ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³System Value        ³Description                                  ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³MSV_CLOSEDCAPTION   ³Query or set the current state of a          ³
³                    ³captioning flag.                             ³
³                    ³By querying the setting of this flag, an     ³
³                    ³application can determine whether to display ³
³                    ³text along with audio, for example, for a    ³
³                    ³hearing-impaired user.                       ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³MSV_MASTERVOLUME    ³Query or set the current master audio level. ³
³                    ³This value acts as a "multiplier" of the     ³
³                    ³individual volume levels of each device      ³
³                    ³context, allowing one application to control ³
³                    ³the volume for a number of open devices or   ³
³                    ³elements.                                    ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³MSV_HEADPHONES      ³Reserved for future use.                     ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³MSV_SPEAKERS        ³Reserved for future use.                     ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³MSV_WORKPATH        ³Query or set the directory for storing of    ³
³                    ³temporary files by the media driver.         ³
³                    ³This value can be used to point to, for      ³
³                    ³example, a directory on the hard disk that   ³
³                    ³holds waveform data from a recording         ³
³                    ³operation.                                   ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³MSV_SYSQOSERRORFLAG ³Query the Quality of Service (QOS) error     ³
³                    ³flag.                                        ³
³                    ³By querying this flag, an application can    ³
³                    ³determine an error occuring during band-width³
³                    ³reservation.                                 ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³MSV_SYSQOSVALUE     ³Query or set the QOS specification value.    ³
³                    ³This system-wide Quality of Service (QOS)    ³
³                    ³specification value is used for band-width   ³
³                    ³reservation (for example, bytes per second)  ³
³                    ³over the network.                            ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ

The following code fragment demonstrates how to obtain the multimedia work path.

CHAR szWorkpath[CCHMAXPATH] ;   /* Work path for temporary files */

if ( mciQuerySysValue( MSV_WORKPATH, szWorkPath ) )
  {
  /* mciQuerySysValue was successful, szWorkPath now */
  /* contains the multimedia workpath                */
  }


[Back] [Next]