Copyright (C) 2000-2012 |
GNU Info (mikmod.info)Variable ReferenceVariable Reference ================== Error Variables --------------- The following variables are set by the library to return error information. `int MikMod_errno' When an error occurs, this variable contains the error code. Note: Error Reference, for more information. `BOOL MikMod_critical' When an error occurs, this variable informs of the severity of the error. Its value has sense only if the value of `MikMod_errno' is different from zero. If the value of `MikMod_critical' is zero, the error wasn't fatal and the library is in a stable state. However, if it is nonzero, then the library can't be used and has reseted itself to the uninitialized state. This often means that the mixing parameters you choose were not supported by the driver, or that it doesn't has enough voices for your needs if you called `MikMod_SetNumVoices'. Sound Settings -------------- The following variables control the sound output parameters and their changes take effect immediately. `UBYTE md_musicvolume' Volume of the module. Allowed values range from 0 to 128. The default value is 128. `UBYTE md_pansep' Stereo channels separation. Allowed values range from 0 (no separation, thus mono sound) to 128 (full channel separation). The default value is 128. `UBYTE md_reverb' Amount of sound reverberation. Allowed values range from 0 (no reverberation) to 15 (a rough estimate for chaos...). The default value is 0. `UBYTE md_sndfxvolume' Volume of the sound effects. Allowed values range from 0 to 128. The default value is 128. `UBYTE md_volume' Overall sound volume. Allowed values range from 0 to 128. The default value is 128. Driver Settings --------------- The following variables control more in-depth sound output parameters. Except for some `md_mode' flags, their changes do not have any effect until you call `MikMod_Init' or `MikMod_Reset'. `UWORD md_device' This variable contains the order, in the list of the registered drivers, of the sound driver which will be used for sound playback. This order is one-based; if this variable is set to zero, the driver is autodetected, which means the list is tested until a driver is present on the system. The default value is 0, thus driver is autodetected. `MDRIVER* md_driver' This variable points to the driver which is being used for sound playback, and is undefined when the library is uninitialized (before `MikMod_Init' and after `MikMod_Exit'). This variable is for information only, you should never attempt to change its value. Use `md_driver' and `MikMod_Init' (or `MikMod_Reset') instead. `UWORD md_mixfreq' Sound playback frequency, in hertz. High values yield high sound quality, but need more computing power than lower values. The default value is 44100 Hz, which is compact disc quality. Other common values are 22100 Hz (radio quality), 11025 Hz (phone quality), and 8000 Hz (mu-law quality). `UWORD md_mode' This variable is a combination of several flags, to select which output mode to select. The following flags have a direct action to the sound output (i.e. changes take effect immediately): `DMODE_INTERP' This flag, if set, enables the interpolated mixers. Interpolated mixing gives better sound but takes a bit more time than standard mixing. If the library is built with the high quality mixer, interpolated mixing is always enabled, regardless of this flag. `DMODE_REVERSE' This flag, if set, exchanges the left and right stereo channels. `DMODE_SURROUND' This flag, if set, enables the surround mixers. Since surround mixing works only for stereo sound, this flag has no effect if the sound playback is in mono. The following flags aren't taken in account until the sound driver is changed or reset: `DMODE_16BIT' This flag, if set, selects 16 bit sound mode. This mode yields better sound quality, but needs twice more mixing time. `DMODE_HQMIXER' This flag, if set, selects the high-quality software mixer. This mode yields better sound quality, but needs more mixing time. Of course, this flag has no effect if no `DMODE_SOFT_xx' flag is set. `DMODE_SOFT_MUSIC' This flag, if set, selects software mixing of the module. `DMODE_SOFT_SNDFX' This flag, if set, selects software mixing of the sound effects. `DMODE_STEREO' This flag, if set, selects stereo sound. The default value of this variable is `DMODE_STEREO | DMODE_SURROUND | DMODE_16BITS | DMODE_SOFT_MUSIC | DMODE_SOFT_SNDFX'. automatically generated by info2www version 1.2.2.9 |