1AuSoundPlay(3) Library Functions Manual AuSoundPlay(3)
2
3
4
6 AuSoundPlay - create a flow to play audio from any source.
7
9 #include <audio/audiolib.h>
10 #include <audio/soundlib.h>
11
12 AuEventHandlerRec *AuSoundPlay(server, destination, volume, mode,
13 sound_data, flow ,volume_mult_elem, monitor_element, status)
14 AuServer *server;
15 AuDeviceID destination;
16 AuFixedPoint volume;
17 int mode;
18 AuSoundDataPtr sound_data;
19 AuFlowID *flow; /* RETURN */
20 int *volume_mult_elem; /* RETURN */
21 int *monitor_element; /* RETURN */
22 AuStatus *status; /* RETURN */
23
25 server Specifies the connection to the audio server.
26
27 destination
28 Specifies the device to output the audio data.
29
30 volume Specifies the volume.
31
32 mode Specifies the line mode for the output device. Currently the
33 following line modes are defined: AuDeviceOutputModeNone,
34 AuDeviceOutputModeSpeaker, AuDeviceOutputModeHeadphone, AuDe‐
35 viceOutputModeLineOut.
36
37 sound_data
38 Specifies the sound information.
39
40 flow If non-NULL, returns the flow ID.
41
42 volume_mult_elem
43 If non-NULL, returns the index of the volume multipler ele‐
44 ment.
45
46 monitor_element
47 If non-NULL, include an ExportMonitor element in the flow and
48 return it's index.
49
50 status If non-NULL, flush the output buffer and return the status
51 from the server.
52
54 AuSoundPlay creates a flow to play audio from any source on device and
55 returns a pointer to the event handler created or NULL if there was an
56 error. The sound_data structure contains the necessary information
57 about the audio format and the data handling function.
58
60 AuBadDevice.
61
63 AuSoundPlayFromBucket, AuSoundPlayFromData, AuSoundPlayFromFile,
64 AuSoundPlaySynchronousFromFile.
65
66 audiolib - Network Audio System C Language Interface
67
68
69
70soundlib 1.9.2 AuSoundPlay(3)