1al_load_audio_stream(3)                                al_load_audio_stream(3)
2
3
4

NAME

6       al_load_audio_stream - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_audio.h>
10
11              ALLEGRO_AUDIO_STREAM *al_load_audio_stream(const char *filename,
12                 size_t buffer_count, unsigned int samples)
13

DESCRIPTION

15       Loads an audio file from disk as it is needed.
16
17       Unlike  regular  streams, the one returned by this function need not be
18       fed by the user; the library will automatically read more of  the  file
19       as  it  is  needed.   The stream will contain buffer_count buffers with
20       samples samples.
21
22       The audio stream will  start  in  the  playing  state.   It  should  be
23       attached  to  a  voice  or  mixer  to  generate  any output.  See ALLE‐
24       GRO_AUDIO_STREAM(3) for more details.
25
26       Returns the stream on success, NULL on failure.
27
28              Note: the allegro_audio library does not support any audio  file
29              formats  by  default.  You must use the allegro_acodec addon, or
30              register your own format handler.
31

SEE ALSO

33       al_load_audio_stream_f(3),          al_register_audio_stream_loader(3),
34       al_init_acodec_addon(3)
35
36
37
38Allegro reference manual                               al_load_audio_stream(3)
Impressum