3
$NCDId: @(#)SoCreate.man,v 1.1 1994/09/27 00:37:59 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: SoundCreate.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>SoundCreate(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>SoundCreate</b> - create a description of an audio
43
<h2><a name='sect1' href='#toc1'><b>Synopsis</b></a></h2>
44
#include <audio/audiolib.h> <p>
45
<b>Sound</b> <b>SoundCreate</b>(<i>file_format</i>, <i>data_format</i>,
46
<i>num_tracks</i>, <i>sample_rate</i>, <i>num_samples</i>, <i>comment</i>) <br>
47
int <i>file_format</i>;<br>
49
int <i>data_format</i>;<br>
51
int <i>num_tracks</i>;<br>
53
int <i>sample_rate</i>;<br>
55
int <i>num_samples</i>;<br>
57
char *<i>comment</i>;<br>
59
<h2><a name='sect2' href='#toc2'><b>Arguments</b></a></h2>
63
<dt><i>file_format</i></dt>
64
<dd>Specifies the format of the audio file. Currently,
65
the following file formats are supported: <b>SoundFileFormatSnd</b>, <b>SoundFileFormatVoc</b>,
66
<b>SoundFileFormatWave</b>, <b>SoundFileFormatAiff</b>, and <b>SoundFileFormatSvx</b>. </dd>
68
<dt><i>data_format</i></dt>
70
the format of the audio data. Currently, the following formats are defined:
71
<b>AuFormatULAW8</b>, <b>AuFormatLinearUnsigned8</b>, <b>AuFormatLinearSigned8</b>, <b>AuFormatLinearSigned16MSB</b>,
72
<b>AuFormatLinearUnsigned16MSB</b>, <b>AuFormatSignedLinear16LSB</b>, and <b>AuFormatLinearUnsigned16LSB</b>.
75
<dt><i>num_tracks</i></dt>
76
<dd>Specifies the number of tracks in the audio data. </dd>
78
<dt><i>sample_rate</i></dt>
80
the sample rate of the audio data. </dd>
82
<dt><i>num_samples</i></dt>
83
<dd>Specifies the number of samples
84
in the audio data. </dd>
86
<dt><i>comment</i></dt>
90
<h2><a name='sect3' href='#toc3'><b>Description</b></a></h2>
91
<b>SoundCreate</b> creates a <b>SoundRec</b> structure,
92
initializes it with the specified values and returns a <b>Sound</b> (a pointer
93
to the <b>SoundRec</b> structure) or NULL if there was an error.
94
<h2><a name='sect4' href='#toc4'><b>See Also</b></a></h2>
95
<b>SoundCloseFile</b>,
96
<b>SoundOpenFileForReading</b>, <b>SoundOpenFileWriting</b>, <p>
97
audiolib - <b>Network Audio
98
System</b> C Language Interface <p>
101
<a name='toc'><b>Table of Contents</b></a><p>
103
<li><a name='toc0' href='#sect0'>Name</a></li>
104
<li><a name='toc1' href='#sect1'>Synopsis</a></li>
105
<li><a name='toc2' href='#sect2'>Arguments</a></li>
106
<li><a name='toc3' href='#sect3'>Description</a></li>
107
<li><a name='toc4' href='#sect4'>See Also</a></li>