Open Sound System
OSS 4.x Programmer's Guide

Do you have problems with sound/audio application development? Don't panic! Click here for help!

MIXT_STEREOSLIDER16 mixer control type

Stereo volume slider with 16 bit precision MIXT_STEREOSLIDER16


Like MIXT_STEREOSLIDER but with 16 bit precision. The left channel volume is stored in the lowest 16 bits of the value field and the right channel volume in the next 16 bits (0xRRRRLLLL).

The maximum value for the channel values is 32767. Storing larger values on the right channel bits will turn on the sign bit of the 32 bit field. This will cause problems because oss mixer framework will interpret negative values as error codes. This should be kept in mind when developing drivers that use this mixer control type.

Copyright (C) 4Front Technologies, 2007. All rights reserved.
Back to index OSS web site