Open Sound System |
Do you have problems with sound/audio application development? Don't panic! Click here for help! |
This capability field (caps&DSP_CH_MASK
) returns information about the preferred channel configuration for the device. This field can be used as a hing in some special cases. Normal applications should not check this field.
The following values are possible.
Chmask | Decription |
DSP_CH_ANY | There is no preferred channel mode. |
DSP_CH_MONO | The preferred mode is mono (1 channels). |
DSP_CH_STEREO | The preferred mode is stereo (2 channels). |
DSP_CH_MULTI | The preferred mode is multichannels (3 or more channels). |
The value of this field doesn't mean that the device can be used only with this channel configuration. All the other configurations are definitely possible. The min_channels
and max_channels
information returned by SNDCTL_AUDIOINFO tells exactly how many channels the device can support natively.
The application can use this field if it needs to decide what is the default mode to be used with the device. The end user must have a way to override this decision.
Audio device capabilities like DSP_CH_MASK can be checked using the SNDCTL_AUDIOINFO or SNDCTL_DSP_GETCAPS ioctl calls.