File: SoCreate.html

package info (click to toggle)
nas 1.8-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 8,452 kB
  • ctags: 23,094
  • sloc: ansic: 54,190; makefile: 23,934; sh: 7,406; perl: 2,208; yacc: 244; cpp: 216; lex: 63
file content (97 lines) | stat: -rw-r--r-- 2,785 bytes parent folder | download | duplicates (2)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!-- manual page source format generated by PolyglotMan v3.0.7, -->
<!-- available via anonymous ftp from ftp.cs.berkeley.edu:/ucb/people/phelps/tcltk/rman.tar.Z -->

<HTML>
<HEAD>
<TITLE>man page(1)</TITLE>
</HEAD>
<BODY bgcolor=white>
<A HREF="#toc">Table of Contents</A><P>

<H2><A NAME="sect0" HREF="#toc0">Name</A></H2>

<P>
<B>SoundCreate</B> - create a description of an audio file.

<H2><A NAME="sect1" HREF="#toc1"><B>Synopsis</B></A></H2>

<P>
#include &lt;audio/audiolib.h&gt;
<P>
<B>Sound</B> <B>SoundCreate</B>(<I>file</I><B>_</B><I>format</I>, <I>data</I><B>_</B><I>format</I>, <I>num</I><B>_</B><I>tracks</I>,
<I>sample</I><B>_</B><I>rate</I>, <I>num</I><B>_</B><I>samples</I>, <I>comment</I>)<BR>

int <I>file</I><B>_</B><I>format</I>;<BR>

int <I>data</I><B>_</B><I>format</I>;<BR>

int <I>num</I><B>_</B><I>tracks</I>;<BR>

int <I>sample</I><B>_</B><I>rate</I>;<BR>

int <I>num</I><B>_</B><I>samples</I>;<BR>

char *<I>comment</I>;

<H2><A NAME="sect2" HREF="#toc2"><B>Arguments</B></A></H2>

<P>
<I>file</I><B>_</B><I>format</I><BR>

Specifies the format of the audio file. Currently,
the following file formats are supported:
<B>SoundFileFormatSnd</B>, <B>SoundFileFormatVoc</B>,
<B>SoundFileFormatWave</B>, <B>SoundFileFormatAiff</B>, and
<B>SoundFileFormatSvx</B>.
<P>
<I>data</I><B>_</B><I>format</I><BR>

Specifies the format of the audio data. Currently,
the following formats are defined:
<B>AuFormatULAW8</B>, <B>AuFormatLinearUnsigned8</B>, <B>AuFormatLinearSigned8</B>,
<B>AuFormatLinearSigned16MSB</B>,<BR>

<B>AuFormatLinearUnsigned16MSB</B>, <B>AuFormatSignedLinear16LSB</B>,
and <B>AuFormatLinearUnsigned16LSB</B>.
<P>
<I>num</I><B>_</B><I>tracks</I><BR>

Specifies the number of tracks in the audio
data.
<P>
<I>sample</I><B>_</B><I>rate</I><BR>

Specifies the sample rate of the audio data.
<P>
<I>num</I><B>_</B><I>samples</I><BR>

Specifies the number of samples in the audio
data.
<P>
<I>comment</I>

<H2><A NAME="sect3" HREF="#toc3"><B>Description</B></A></H2>

<P>
<B>SoundCreate</B> creates a <B>SoundRec</B> structure, initializes it
with the specified values and returns a <B>Sound</B> (a pointer
to the <B>SoundRec</B> structure) or NULL if there was an error.

<H2><A NAME="sect4" HREF="#toc4"><B>See</B> <B>Also</B></A></H2>

<P>
<B>SoundCloseFile</B>,    <B>SoundOpenFileForReading</B>,     <B>SoundOpenFileWriting</B>,
<P>
audiolib - <B>Network</B> <B>Audio</B> <B>System</B> C Language Interface
<P>

<HR><P>
<A NAME="toc"><B>Table of Contents</B></A><P>
<UL>
<LI><A NAME="toc0" HREF="#sect0">Name</A></LI>
<LI><A NAME="toc1" HREF="#sect1">Synopsis</A></LI>
<LI><A NAME="toc2" HREF="#sect2">Arguments</A></LI>
<LI><A NAME="toc3" HREF="#sect3">Description</A></LI>
<LI><A NAME="toc4" HREF="#sect4">See Also</A></LI>
</UL>
</BODY></HTML>