3
$NCDId: @(#)AuSDAttr.man,v 1.1 1994/09/27 00:34:45 greg Exp $
4
copyright 1994 Steven King
7
* Copyright 1993 Network Computing Devices, Inc.
9
* Permission to use, copy, modify, distribute, and sell this software and its
10
* documentation for any purpose is hereby granted without fee, provided that
11
* the above copyright notice appear in all copies and that both that
12
* copyright notice and this permission notice appear in supporting
13
* documentation, and that the name Network Computing Devices, Inc. not be
14
* used in advertising or publicity pertaining to distribution of this
15
* software without specific, written prior permission.
17
* THIS SOFTWARE IS PROVIDED 'AS-IS'. NETWORK COMPUTING DEVICES, INC.,
18
* DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT
19
* LIMITATION ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
20
* PARTICULAR PURPOSE, OR NONINFRINGEMENT. IN NO EVENT SHALL NETWORK
21
* COMPUTING DEVICES, INC., BE LIABLE FOR ANY DAMAGES WHATSOEVER, INCLUDING
22
* SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, INCLUDING LOSS OF USE, DATA,
23
* OR PROFITS, EVEN IF ADVISED OF THE POSSIBILITY THEREOF, AND REGARDLESS OF
24
* WHETHER IN AN ACTION IN CONTRACT, TORT OR NEGLIGENCE, ARISING OUT OF OR IN
25
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
27
$Id: AuSetDeviceAttributes.3.html 243 2007-04-07 23:13:43Z jon $
30
<!-- manual page source format generated by PolyglotMan v3.0.8+X.Org, -->
31
<!-- available at http://polyglotman.sourceforge.net/ -->
35
<title>AuSetDeviceAttributes(3) manual page</title>
37
<body bgcolor='#efefef' text='black' link='blue' vlink='#551A8B' alink='red'>
38
<a href='#toc'>Table of Contents</a><p>
40
<h2><a name='sect0' href='#toc0'><b>Name</b></a></h2>
41
<b>AuSetDeviceAttributes</b> - set device attributes
43
<h2><a name='sect1' href='#toc1'><b>Synopsis</b></a></h2>
44
#include <audio/audiolib.h> <p>
45
void <b>AuSetDeviceAttributes</b>(<i>server</i>, <i>device</i>,
46
<i>valuemask</i>, <i>attributes</i>, <i>status</i>) <br>
47
<b>AuServer</b> *<i>server</i>;<br>
49
<b>AuDeviceID</b> <i>device</i>;<br>
51
<b>AuMask</b> <i>valuemask</i>;<br>
53
<b>AuDeviceAttributes</b> *<i>attributes</i>;<br>
55
<b>AuStatus</b> *<i>status</i>; /* <b>RETURN</b> */<br>
57
<h2><a name='sect2' href='#toc2'><b>Arguments</b></a></h2>
61
<dt><i>server</i></dt>
62
<dd>Specifies the connection to the audio server. </dd>
64
<dt><i>device</i></dt>
66
the ID of the device. </dd>
68
<dt><i>valuemask</i></dt>
69
<dd>Specifies which values in <i>attributes</i> to used.
70
This must be a bitwise inclusive OR of one or more of these constants:
71
<b>AuCompCommonIDMask</b>, <b>AuCompCommonKindMask</b>, <b>AuCompCommonUseMask</b>, <b>AuCommonFormatMask</b>,
72
<b>AuCommonNumTracksMask</b>, <b>AuCommonAccessMask</b>, AuCommonDescriptionMask, <b>AuCompDeviceGainMask</b>,
73
or <b>AuCompDeviceLineModeMask</b>. </dd>
75
<dt><i>attributes</i></dt>
76
<dd>Specifies the structure from which
77
the values (as specified by the value mask) are to be taken. </dd>
79
<dt><i>status</i></dt>
81
flush the output buffer and return the status from the server. </dd>
84
<h2><a name='sect3' href='#toc3'><b>Description</b></a></h2>
85
<b>AuSetDeviceAttributes</b>
86
sets the attributes of <i>device</i> using only those values in <i>attributes</i> specified
87
by <i>valuemask</i>. Attempting to change attributes not marked as changable will
88
fail with a <b>AuBadValue</b> error.
89
<h2><a name='sect4' href='#toc4'><b>Errors</b></a></h2>
90
<b>AuBadDevice</b>, <b>AuBadLength</b>, <b>AuBadValue</b>.
92
<h2><a name='sect5' href='#toc5'><b>See Also</b></a></h2>
93
<b>AuGetDeviceAttributes</b>. <p>
94
audiolib - <b>Network Audio System</b> C Language
98
<a name='toc'><b>Table of Contents</b></a><p>
100
<li><a name='toc0' href='#sect0'>Name</a></li>
101
<li><a name='toc1' href='#sect1'>Synopsis</a></li>
102
<li><a name='toc2' href='#sect2'>Arguments</a></li>
103
<li><a name='toc3' href='#sect3'>Description</a></li>
104
<li><a name='toc4' href='#sect4'>Errors</a></li>
105
<li><a name='toc5' href='#sect5'>See Also</a></li>