Unit al5acodec

Uses
Classes, Interfaces, Objects and Records
Types
Constants
Variables

Description

This unit registers bitmap format handlers for al_load_sample, al_save_sample, al_load_audio_stream, etc.

Overview

Functions and Procedures

FUNCTION al_init_acodec_addon: AL_BOOL; CDECL; EXTERNAL ALLEGRO_ACODEC_LIB_NAME;
FUNCTION al_get_allegro_acodec_version: AL_UINT32; CDECL; EXTERNAL ALLEGRO_ACODEC_LIB_NAME;

Description

Functions and Procedures

FUNCTION al_init_acodec_addon: AL_BOOL; CDECL; EXTERNAL ALLEGRO_ACODEC_LIB_NAME;

Registers all the known audio file type handlers for al_load_sample, al_save_sample, al_load_audio_stream, etc.

Depending on what libraries are available, the full set of recognised extensions is: .wav, .flac, .ogg, .it, .mod, .s3m, .xm.

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 sample. Therefore they cannot be loaded with al_load_sample and must be streamed with al_load_audio_stream.

  • .voc file streaming is unimplemented.

Returns

True on success.

FUNCTION al_get_allegro_acodec_version: AL_UINT32; CDECL; EXTERNAL ALLEGRO_ACODEC_LIB_NAME;

Returns the (compiled) version of the addon, in the same format as al_get_allegro_version.


Generated by PasDoc 0.14.0. Generated on 2017-01-03 13:25:50.