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

NAME

6       al_load_sample_f
7

SYNOPSIS

9              #include <allegro5/allegro_audio.h>
10
11              ALLEGRO_SAMPLE *al_load_sample_f(ALLEGRO_FILE* fp, const char *ident)
12

DESCRIPTION

14       Loads an audio file from an ALLEGRO_FILE(3) stream into an ALLEGRO_SAM‐
15       PLE(3).  The file type is determined by the passed  `ident'  parameter,
16       which is a file name extension including the leading dot.
17
18       Note  that  this stores the entire file in memory at once, which may be
19       time  consuming.   To  read   the   file   as   it   is   needed,   use
20       al_load_audio_stream_f(3).
21
22       Returns  the sample on success, NULL on failure.  The file remains open
23       afterwards.
24
25              Note: the allegro_audio library does not support any audio  file
26              formats  by  default.  You must use the allegro_acodec addon, or
27              register your own format handler.
28

SEE ALSO

30       al_register_sample_loader_f(3), al_init_acodec_addon(3)
31
32
33
34Allegro reference manual                                   al_load_sample_f(3)
Impressum