1SoundCreate(3) Library Functions Manual SoundCreate(3)
2
3
4
6 SoundCreate - create a description of an audio file.
7
9 #include <audio/audiolib.h>
10
11 Sound SoundCreate(file_format, data_format, num_tracks, sample_rate,
12 num_samples, comment)
13 int file_format;
14 int data_format;
15 int num_tracks;
16 int sample_rate;
17 int num_samples;
18 char *comment;
19
21 file_format
22 Specifies the format of the audio file. Currently, the fol‐
23 lowing file formats are supported: SoundFileFormatSnd, Sound‐
24 FileFormatVoc, SoundFileFormatWave, SoundFileFormatAiff, and
25 SoundFileFormatSvx.
26
27 data_format
28 Specifies the format of the audio data. Currently, the fol‐
29 lowing formats are defined: AuFormatULAW8, AuFormatLinearUn‐
30 signed8, AuFormatLinearSigned8, AuFormatLinearSigned16MSB,
31 AuFormatLinearUnsigned16MSB, AuFormatSignedLinear16LSB, and
32 AuFormatLinearUnsigned16LSB.
33
34 num_tracks
35 Specifies the number of tracks in the audio data.
36
37 sample_rate
38 Specifies the sample rate of the audio data.
39
40 num_samples
41 Specifies the number of samples in the audio data.
42
43 comment
44
46 SoundCreate creates a SoundRec structure, initializes it with the spec‐
47 ified values and returns a Sound (a pointer to the SoundRec structure)
48 or NULL if there was an error.
49
51 SoundCloseFile, SoundOpenFileForReading, SoundOpenFileWriting,
52
53 audiolib - Network Audio System C Language Interface
54
55
56
57 1.9.4 SoundCreate(3)