2
.\" Copyright (c) 2005, 4Front Technologies 2005\&.
3
.TH ossddk_adev_set_channels 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services"
5
ossddk_adev_set_channels \- Set the supported channel configuration
9
#include <sys/soundcard.h>
11
#include <sys/ossddk/ossddk.h>
14
\fBvoid\fR ossddk_adev_set_channels(\fBint \fIdev\fP, \fBint \fImin_channels\fP, \fBint \fImax_channels\fP);
18
Open Sound System specific (OSS 4.0 DDK)\&.
28
OSS audio device number.
36
Minimum number of channels (should be at least 1).
44
Maximum number of channels supported.
49
This function sets meta information that can be read using the \fISNDCTL_AUDIOINFO(2oss)\fR ioctl call. It is recommended that the driver calls this function after installing
52
This call sets only the bounds to the number of channels supported by the device. It's
53
possible that the device doesn't support all possible channel configurations between
54
these limits. For example it may support 2 and 8 channels but not anything between
55
them. This is OK and the driver developer should not worry about this.
59
\fISNDCTL_AUDIOINFO(2oss)\fR
61
\fIWriting Sound Device Drivers with OSS DDK\fR
63
\fIOpen Sound System Programmer's Guide\fR