Hi, The Hg version contains an interesting new development. Now the http://manuals.opensound.com/developer/SNDCTL_MIX_EXTINFO.html ioctl returns a rgbcolor field that can be used to define colors to the controls. By default rgbcolor will be 0 which means that no color information is available for this control. Drivers can set this fiel to a RGB value (0x00RRGGBB in hex). In such case the mixer application can set the color of the slider/widget based on this info.
This feature is intended to be used to pass info about color coded jacks to the mixers. Colored sliders make it easier to figure out which jack is affected by the control. There is now a set of predefined colors (OSS_RGB_*) in soundcard.h that make it easier to select the right color. Note that the rgbcolor field is only present in the latest v4.1 version of OSS (OSS_VERSION >= 0x040004). It will not be available in the 4.0 version. Also at this moment only drivers for AC97 based cards (and few other drivers using the legavy OSS3 mixer API) have full support for this feature. Also the hdaudio driver adds rgbcolor info for some controls (but not for all of them). Next future development might be adding tooltip support to the mixer API. In this way the driver can return a tooltip string that describes the function performed by the control. Best regards, Hannu _______________________________________________ oss-devel mailing list oss-devel@mailman.opensound.com http://mailman.opensound.com/mailman/listinfo/oss-devel