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_DUPLEX audio device capability

The device supports the one-device duplex mode

Description

This capability is very tricky so be carefull before using it. See the Using simultaneous audio recording and playback (full duplex) section for more info.

However lack of it doesn't mean that the device cannot do full duplex. It may also mean that the application needs to use the two device approach.

This capability will not be reported if the device has been opened with the O_RDONLY or O_WRONLY flags. This means that applications using the single device full duplex method should not check for it (otherwise they will always fail to work.

Audio device capabilities like PCM_CAP_DUPLEX 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