1al_init_acodec_addon(3) al_init_acodec_addon(3)
2
3
4
6 al_init_acodec_addon - Allegro 5 API
7
9 #include <allegro5/allegro_acodec.h>
10
11 bool al_init_acodec_addon(void)
12
14 This function registers all the known audio file type handlers for
15 al_load_sample(3), al_save_sample(3), al_load_audio_stream(3), etc.
16
17 Depending on what libraries are available, the full set of recognised
18 extensions is: .wav, .flac, .ogg, .opus, .it, .mod, .s3m, .xm, .voc.
19
20 Limitations:
21
22 • Saving is only supported for wav files.
23
24 • The wav file loader currently only supports 8/16 bit little endian
25 PCM files. 16 bits are used when saving wav files. Use flac files
26 if more precision is required.
27
28 • Module files (.it, .mod, .s3m, .xm) are often composed with streaming
29 in mind, and sometimes cannot be easily rendered into a finite length
30 sample. Therefore they cannot be loaded with al_load_sam‐
31 ple(3)/al_load_sample_f(3) and must be streamed with al_load_au‐
32 dio_stream(3) or al_load_audio_stream_f(3).
33
34 • .voc file streaming is unimplemented.
35
36 Return true on success.
37
38
39
40Allegro reference manual al_init_acodec_addon(3)