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

Name

6       AuSoundRecord - create a flow to record audio to any destination.
7

Synopsis

9       #include <audio/audiolib.h>
10       #include <audio/soundlib.h>
11
12       AuEventHandlerRec  *AuSoundRecord(server,  source,  gain,  num_samples,
13       mode, sound_data, flow, volume_mult_elem, status)
14           AuServer *server;
15           AuDeviceID source;
16           AuFixedPoint gain;
17           AuUint32 num_samples;
18           int mode;
19           AuSoundDataPtr sound_data;
20           AuFlowID *flow; /* RETURN */
21           int *volume_mult_elem; /* RETURN */
22           AuStatus *status; /* RETURN */
23

Arguments

25       server    Specifies the connection to the audio server.
26
27       source    Specifies the input device to use.
28
29       gain      Specifies the gain for the input device.
30
31       num_samples
32                 Specifies the number of samples to record.
33
34       mode      Specifies the line mode for the input device.  Currently  the
35                 following  line  modes  are  defined:  AuDeviceInputModeNone,
36                 AuDeviceInputModeLineIn, AuDeviceInputModeMicrophone.
37
38       sound_data
39                 Specifies the sound information.
40
41       flow      If non-NULL, returns the flow ID.
42
43       volume_mult_elem
44                 Accord to the comment in the source, not implemented.
45
46       status    If non-NULL, flush the output buffer and  return  the  status
47                 from the server.
48

Description

50       AuSoundRecord  creates a flow to record audio from source to any destiā€
51       nation and returns a pointer to the event handler created  or  NULL  if
52       there  was  an  error.  The sound_data structure contains the necessary
53       information about the audio format and the data handling function.
54

Errors

56       AuBadDevice.
57

See Also

59       AuSoundRecordToBucket,    AuSoundRecordToData,     AuSoundRecordToFile,
60       AuSoundRecordToFileN.
61
62       audiolib - Network Audio System C Language Interface
63
64
65
66soundlib                             1.9.2                    AuSoundRecord(3)
Impressum