1AuSoundPlayFromData(3)     Library Functions Manual     AuSoundPlayFromData(3)
2
3
4

Name

6       AuSoundPlayFromData - create a flow to play from memory.
7

Synopsis

9       #include <audio/audiolib.h>
10       #include <audio/soundlib.h>
11
12       AuEventHandlerRec  *AuSoundPlayFromData(server,  sound,  data, destina‐
13       tion, volume, callback, callback_data,  flow,  volume_mult_elem,  moni‐
14       tor_element, status)
15           AuServer *server;
16           Sound sound;
17           AuPointer data;
18           AuDeviceID destination;
19           AuFixedPoint volume;
20           void  (*callback)  (AuServer *, AuEventHandlerRec *, AuEvent *, Au‐
21       Pointer);
22           AuPointer callback_data;
23           AuFlowID *flow; /* RETURN */
24           int *volume_mult_elem; /* RETURN */
25           int *monitor_element; /* RETURN */
26           AuStatus *status; /* RETURN */
27

Arguments

29       server    Specifies the connection to the audio server.
30
31       sound     Specifies the description of the audio data.
32
33       data      Specifies the audio data to play.
34
35       destination
36                 Specifies the device to play the data on.
37
38       volume    Specifies the volume.
39
40       callback  Specifies the procedure to be  called  for  additional  event
41                 processing.
42
43       callback_data
44                 Specifies any additional arguments to be passed the callback.
45
46       flow      If non-NULL, returns the flow ID.
47
48       volume_mult_elem
49                 If  non-NULL,  returns the index of the volume multipler ele‐
50                 ment.
51
52       monitor_element
53                 If non-NULL, include an ExportMonitor element in the flow and
54                 return it's index.
55
56       status    If  non-NULL,  flush  the output buffer and return the status
57                 from the server.
58

Description

60       AuSoundPlayFromData creates a flow to play data on device and returns a
61       pointer to the event handler created or NULL if there was an error.
62

Errors

64       AuBadAlloc, AuBadDevice.
65

See Also

67       AuSoundPlay,   AuSoundPlayFromBucket,   AuSoundPlayFromFile,   AuSound‐
68       PlaySynchronousFromFile.
69
70       audiolib - Network Audio System C Language Interface
71
72
73
74soundlib                             1.9.5              AuSoundPlayFromData(3)
Impressum