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 playback. However the application should also have opened the device file for output.
The PCM_CAP_INPUT capability gives the same information about the recording 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_OUTPUT can be checked using the SNDCTL_AUDIOINFO or SNDCTL_DSP_GETCAPS ioctl calls.