summaryrefslogtreecommitdiff
path: root/misc/man9ossddk/ossddk_adev_get_devc.9ossddk
blob: 39abbf38e5f4a97d26fdccce6688813f03e78266 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
'\" te
.\"  Copyright (c) 2005, 4Front Technologies 2005\&.
.TH ossddk_adev_get_devc 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services"
.SH "NAME"
ossddk_adev_get_devc \- Returns the devc pointer for this audio device
.PP
.SH "SYNOPSIS"
.nf
#include <sys/soundcard.h>
.LP
#include <sys/ossddk/ossddk.h>
.fi
.LP
\fBvoid*\fR ossddk_adev_get_devc(\fBint \fIdev\fP);
.PP
.SH "INTERFACE LEVEL"
.PP
Open Sound System specific (OSS 4.0 DDK)\&.
.PP
.SH "ARGUMENTS"
.PP
.sp
.ne 2
.mk
\fB\fIdev\fR
.in +16n
.rt
OSS device number.
.in -16n
.PP
.SH "DESCRIPTION"
.PP
This function returns the devc pointer used when creating this audio device using
ossddk_install_audiodev(9ossddk).
.PP
CAUTION! Extreme care must be taken in drivers that drive both mixer and audio
device files. Both types of devices have different functions for getting
the devc pointer. Drivers must use ossddk_adev_get_devc with audio device 
numbers and ossddk_mixer_get_devc with mixer device numbers.
.PP
.SH "RETURN VALUES"
The devc pointer.
.PP
.SH "SEE ALSO"
.PP
\fIWriting Sound Device Drivers with OSS DDK\fR
\fIOpen Sound System Programmer's Guide\fR