1al_load_sample(3)          Library Functions Manual          al_load_sample(3)
2
3
4

NAME

6       al_load_sample
7

SYNOPSIS

9              #include <allegro5/allegro_audio.h>
10
11              ALLEGRO_SAMPLE *al_load_sample(const char *filename)
12

DESCRIPTION

14       Loads a few different audio file formats based on their extension.
15
16       Note  that  this stores the entire file in memory at once, which may be
17       time  consuming.   To  read   the   file   as   it   is   needed,   use
18       al_load_audio_stream(3).
19
20       Returns the sample on success, NULL on failure.
21
22              Note:  the allegro_audio library does not support any audio file
23              formats by default.  You must use the allegro_acodec  addon,  or
24              register your own format handler.
25

SEE ALSO

27       al_register_sample_loader(3), al_init_acodec_addon(3)
28
29
30
31Allegro reference manual                                     al_load_sample(3)
Impressum