1AuSoundPlayFromFile(3) Library Functions Manual AuSoundPlayFromFile(3)
2
3
4
6 AuSoundPlayFromFile - create a flow to play a file.
7
9 #include <audio/audiolib.h>
10 #include <audio/soundlib.h>
11
12 AuEventHandlerRec *AuSoundPlayFromFile(server, filename, destination,
13 volume, callback, callback_data, flow ,volume_mult_elem, monitor_ele‐
14 ment, status)
15 AuServer *server;
16 char *filename;
17 AuDeviceID destination;
18 AuFixedPoint volume;
19 void (*callback) (AuServer *, AuEventHandlerRec *,AuEvent
20 *,AuPointer);
21 AuPointer callback_data;
22 AuFlowID *flow; /* RETURN */
23 int *volume_mult_elem; /* RETURN */
24 int *monitor_element; /* RETURN */
25 AuStatus *status; /* RETURN */
26
28 server Specifies the connection to the audio server.
29
30 filename Specifies the name of the file to play.
31
32 destination
33 Specifies the device to output the audio data.
34
35 volume Specifies the volume.
36
37 callback Specifies the procedure to be called for additional event
38 processing.
39
40 callback_data
41 Specifies any additional arguments to be passed to the call‐
42 back.
43
44 flow If non-NULL, returns the flow ID.
45
46 volume_mult_elem
47 If non-NULL, returns the index of the volume multipler ele‐
48 ment.
49
50 monitor_element
51 If non-NULL, include an ExportMonitor element in the flow and
52 return it's index.
53
54 status If non-NULL, flush the output buffer and return the status
55 from the server.
56
58 AuSoundPlayFromFile creates a flow to play filename on device and
59 returns a pointer to the event handler created or NULL if there was an
60 error.
61
63 AuBadDevice.
64
66 AuSoundPlay, AuSoundPlayFromBucket, AuSoundPlayFromData, AuSound‐
67 PlaySynchronousFromFile.
68
69 audiolib - Network Audio System C Language Interface
70
71
72
73soundlib 1.9.4 AuSoundPlayFromFile(3)