Open Sound System
|Do you have problems with sound/audio application development? Don't panic! Click here for help!|
This capability tells that the device can do recording. However the application should also have opened the device file for input.
The PCM_CAP_OUTPUT capability gives the same information about the playback direction. In addition thePCM_CAP_DUPLEX capability is related with this one.
This capability is not present in older OSS versions which will not report PCM_CAP_OUTPUT or PCM_CAP_INPUT. Applications that check these capabilities must detect this situation and handle it properly.
Audio device capabilities like PCM_CAP_INPUT can be checked using the SNDCTL_AUDIOINFO or SNDCTL_DSP_GETCAPS ioctl calls.