1AuMakeElementImportWaveFrom(L3i)brary Functions ManuAaulMakeElementImportWaveFrom(3)
2
3
4
6 AuMakeElementImportWaveForm - initialize an ImportWaveForm element
7
9 #include <audio/audiolib.h>
10
11 AuMakeElementImportWaveForm(element, sample_rate, wave_form, num_sam‐
12 ples, freq, num_actions, actions)
13 AuElement *element; /* RETURN */
14 unsigned short sample_rate;
15 int wave_form;
16 AuInt32 freq;
17 AuInt32 num_samples;
18 int num_actions;
19 AuElementAction *actions;
20
22 element Returns the initialized element.
23
24 sample_rate
25 Specifies the sample rate of the audio data.
26
27 wave_form Specifies the waveform to use. Currently, the following
28 waveforms are defined: AuWaveFormSquare, AuWaveFormSine,
29 AuWaveFormSaw, and AuWaveFormConstant.
30
31 freq Specifies the frequency of the waveform.
32
33 num_samples
34 Specifies the number of samples to read. Use AuUnlimitedSam‐
35 ples to indicate an unlimited number of samples.
36
37 num_actions
38 Specifies the number of actions in actions.
39
40 actions Specifies the list of actions to associate with this element.
41 Entries in this list can be initialized with AuMakeChangeS‐
42 tateAction, AuMakeSendNotifyAction, and AuMakeNoopAction.
43 May be NULL.
44
46 AuMakeElementImportWaveForm sets the type member of element to AuEle‐
47 mentTypeImportWaveForm and initializes the importwaveform member of
48 element with the remaining arguments.
49
50 AuMakeElementImportWaveForm is implemented as a macro.
51
53 A server might not support all the waveforms currently defined.
54
56 AuMakeElementAddConstant, AuMakeElementBundle, AuMakeElementExport‐
57 Bucket, AuMakeElementExportClient, AuMakeElementExportDevice, AuMa‐
58 keElementExportMonitor AuMakeElementImportBucket, AuMakeElementImport‐
59 Client, AuMakeElementImportDevice, AuMakeElementMultiplyConstant, AuMa‐
60 keElementSum.
61
62 audiolib - Network Audio System C Language Interface
63
64
65
66audiolib - element initialization 1.9.4 AuMakeElementImportWaveFrom(3)