Google
 

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!

PCM_CAP_INPUT audio device capability

The device can be used for recording

Description

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.



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