Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
al_init_acodec_addon(3)     Library Functions Manual	 al_init_acodec_addon(3)

NAME
     al_init_acodec_addon - Allegro 5 API

SYNOPSIS
	    #include <allegro5/allegro_acodec.h>

	    bool al_init_acodec_addon(void)

DESCRIPTION
     This  function  registers	all  the  known  audio	file  type  handlers for
     al_load_sample(3), al_save_sample(3), al_load_audio_stream(3), etc.

     Depending on what libraries are available, the full set of  recognised  ex-
     tensions is: .wav, .flac, .ogg, .opus, .it, .mod, .s3m, .xm, .voc.

     Limitations:

     * Saving is only supported for wav files.

     * 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.

     * Module  files (.it, .mod, .s3m, .xm) are often composed with streaming in
       mind, and sometimes cannot be easily rendered into a finite  length  sam-
       ple.  Therefore they cannot be loaded with al_load_sample(3)/al_load_sam-
       ple_f(3) and must be streamed with al_load_audio_stream(3) or al_load_au-
       dio_stream_f(3).

     * .voc file streaming is unimplemented.

     Return true on success.

Allegro reference manual				 al_init_acodec_addon(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=al_init_acodec_addon&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help