.\" Automatically generated by Pandoc 2.2.1 .\" .TH "al_init_acodec_addon" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_init_acodec_addon \- Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include\ bool\ al_init_acodec_addon(void) \f[] .fi .SH DESCRIPTION .PP This function registers all the known audio file type handlers for al_load_sample(3alleg5), al_save_sample(3alleg5), al_load_audio_stream(3alleg5), etc. .PP Depending on what libraries are available, the full set of recognised extensions is: .wav, .flac, .ogg, .opus, .it, .mod, .s3m, .xm, .voc. .PP \f[I]Limitations:\f[] .IP \[bu] 2 Saving is only supported for wav files. .IP \[bu] 2 The wav file loader currently only supports 8/16 bit little endian PCM files. 16 bits are used when saving wav files. Use flac files if more precision is required. .IP \[bu] 2 Module files (.it, .mod, .s3m, .xm) are often composed with streaming in mind, and sometimes cannot be easily rendered into a finite length sample. Therefore they cannot be loaded with al_load_sample(3alleg5)/al_load_sample_f(3alleg5) and must be streamed with al_load_audio_stream(3alleg5) or al_load_audio_stream_f(3alleg5). .IP \[bu] 2 \&.voc file streaming is unimplemented. .PP Return true on success.