1
<!-- manual page source format generated by PolyglotMan v3.0.7, -->
2
<!-- available via anonymous ftp from ftp.cs.berkeley.edu:/ucb/people/phelps/tcltk/rman.tar.Z -->
6
<TITLE>man page(1)</TITLE>
9
<A HREF="#toc">Table of Contents</A><P>
11
<H2><A NAME="sect0" HREF="#toc0">Name</A></H2>
14
<B>AuSoundPlayFromData</B> - create a flow to play from memory.
16
<H2><A NAME="sect1" HREF="#toc1"><B>Synopsis</B></A></H2>
19
#include <audio/audiolib.h><BR>
21
#include <audio/soundlib.h>
23
<B>AuEventHandlerRec</B> *<B>AuSoundPlayFromData</B>(<I>server</I>, <I>sound</I>,
24
<I>data</I>, <I>destination</I>, <I>volume</I>, <I>callback</I>, <I>callback</I><B>_</B><I>data</I>, <I>flow</I>,
25
<I>volume</I><B>_</B><I>mult</I><B>_</B><I>elem</I>, <I>monitor</I><B>_</B><I>element</I>, <I>status</I>)
26
<B>AuServer</B> *<I>server</I>;<BR>
28
<B>Sound</B> <I>sound</I>;<BR>
30
<B>AuPointer</B> <I>data</I>;<BR>
32
<B>AuDeviceID</B> <I>destination</I>;<BR>
34
<B>AuFixedPoint</B> <I>volume</I>;<BR>
36
void (*<I>callback</I>) (<B>AuServer</B> *, <B>AuEventHandlerRec</B> *,
37
<B>AuEvent</B> *, <B>AuPointer</B>);<BR>
39
<B>AuPointer</B> <I>callback</I><B>_</B><I>data</I>;<BR>
41
<B>AuFlowID</B> *<I>flow</I>; /* <B>RETURN</B> */<BR>
43
int *<I>volume</I><B>_</B><I>mult</I><B>_</B><I>elem</I>; /* <B>RETURN</B> */
44
int *<I>monitor</I><B>_</B><I>element</I>; /* <B>RETURN</B> */<BR>
46
<B>AuStatus</B> *<I>status</I>; /* <B>RETURN</B> */
48
<H2><A NAME="sect2" HREF="#toc2"><B>Arguments</B></A></H2>
53
<DT><I>server</I> </DT></DT>
54
<DD> Specifies the connection to the audio server.
57
<DT><I>sound</I> </DT></DT>
58
<DD> Specifies the description of the audio data.
61
<DT><I>data</I> </DT></DT>
62
<DD> Specifies the audio data to play.
66
<I>destination</I><BR>
68
Specifies the device to play the data on.
72
<DT><I>volume</I> </DT></DT>
73
<DD> Specifies the volume.
77
<I>callback</I> Specifies the procedure to be called for additional
80
<I>callback</I><B>_</B><I>data</I><BR>
82
Specifies any additional arguments to be passed
87
<DT><I>flow</I> </DT></DT>
88
<DD> If non-NULL, returns the flow ID.
92
<I>volume</I><B>_</B><I>mult</I><B>_</B><I>elem</I><BR>
94
If non-NULL, returns the index of the volume
97
<I>monitor</I><B>_</B><I>element</I><BR>
99
If non-NULL, include an ExportMonitor element in
100
the flow and return it's index.
104
<DT><I>status</I> </DT></DT>
105
<DD> If non-NULL, flush the output buffer and return
106
the status from the server.
110
<H2><A NAME="sect3" HREF="#toc3"><B>Description</B></A></H2>
113
<B>AuSoundPlayFromData</B> creates a flow to play <I>data</I> on <I>device</I>
114
and returns a pointer to the event handler created or NULL
115
if there was an error.
117
<H2><A NAME="sect4" HREF="#toc4"><B>Errors</B></A></H2>
120
<B>AuBadAlloc</B>, <B>AuBadDevice</B>.
122
<H2><A NAME="sect5" HREF="#toc5"><B>See</B> <B>Also</B></A></H2>
125
<B>AuSoundPlay</B>, <B>AuSoundPlayFromBucket</B>, <B>AuSoundPlayFromFile</B>,
126
<B>AuSoundPlaySynchronousFromFile</B>.
128
audiolib - <B>Network</B> <B>Audio</B> <B>System</B> C Language Interface
132
<A NAME="toc"><B>Table of Contents</B></A><P>
134
<LI><A NAME="toc0" HREF="#sect0">Name</A></LI>
135
<LI><A NAME="toc1" HREF="#sect1">Synopsis</A></LI>
136
<LI><A NAME="toc2" HREF="#sect2">Arguments</A></LI>
137
<LI><A NAME="toc3" HREF="#sect3">Description</A></LI>
138
<LI><A NAME="toc4" HREF="#sect4">Errors</A></LI>
139
<LI><A NAME="toc5" HREF="#sect5">See Also</A></LI>