~ubuntu-branches/ubuntu/oneiric/oss4/oneiric-proposed

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
48
'\" te
.\"  Copyright (c) 2005, 4Front Technologies 2005\&.
.TH ossddk_mixer_get_devc 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services"
.SH "NAME"
ossddk_mixer_get_devc \- Get the devc pointer assigned to a mixer device.
.PP
.SH "SYNOPSIS"
.nf
#include <sys/soundcard.h>
.LP
#include <sys/ossddk/ossddk.h>
.fi
.LP
\fBvoid*\fR ossddk_mixer_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
Mixer drivers can give a pointer to their private devc structure when installing
the themselves. This function makes it possible to obtain this pointer when
necessary.
.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"
This function returns a poiner to the devc structure created by this driver.
.PP
.SH "SEE ALSO"
.PP
\fIWriting Sound Device Drivers with OSS DDK\fR
\fIOpen Sound System Programmer's Guide\fR