2
.\" Copyright (c) 2005, 4Front Technologies 2005\&.
3
.TH ossddk_adev_set_formats 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services"
5
ossddk_adev_set_formats \- report the supported sample formats
9
#include <sys/soundcard.h>
11
#include <sys/ossddk/ossddk.h>
14
\fBvoid\fR ossddk_adev_set_formats(\fBint \fIdev\fP, \fBunsigned int \fIoformats\fP, \fBunsigned int \fIiformats\fP);
18
Open Sound System specific (OSS 4.0 DDK)\&.
28
OSS audio device number.
36
Bit mask containing the formats the device supports in playback direction.
44
Bit mask containing the formats the device supports in recording direction.
49
Applications using audio can ask what formats the device supports using various
50
ioctl calls. The driver must provide this information. Usually it sets the format mask
51
when installing the device using \fIossddk_install_audiodev(9ossddk)\fR. However it
52
may be necessary to change this information later if a change in device's mode of
53
operation also changes the formats it currently supports. Another situation when
54
this function should be called is when the device supports different formats
55
for recording and playback.
59
\fISNDCTL_AUDIOINFO(2oss)\fR
61
\fISNDCTL_DSP_GETFMTS(2oss)\fR
63
\fISNDCTL_DSP_SETFMT(2oss)\fR
65
\fIWriting Sound Device Drivers with OSS DDK\fR
67
\fIOpen Sound System Programmer's Guide\fR