1load_wav(3)                     Allegro manual                     load_wav(3)
2
3
4

NAME

6       load_wav  -  Loads a sample from a RIFF WAV file. Allegro game programā€
7       ming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       SAMPLE *load_wav(const char *filename);
14

DESCRIPTION

16       Loads a sample from a RIFF WAV file. Example:
17
18          SAMPLE *sample = load_wav("scream.wav");
19          if (!sample)
20             abort_on_error("Couldn't scare user!");
21

RETURN VALUE

23       Returns a pointer to the SAMPLE or NULL on error. Remember to free this
24       sample later to avoid memory leaks.
25
26

SEE ALSO

28       load_sample(3), register_sample_file_type(3)
29
30
31
32Allegro                          version 4.2.2                     load_wav(3)
Impressum