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

NAME

6       load_voc  -  Loads a sample from a Creative Labs VOC file. Allegro game
7       programming library.
8

SYNOPSIS

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

DESCRIPTION

16       Loads a sample from a Creative Labs VOC file. Example:
17
18          SAMPLE *sample = load_voc("alarm.voc");
19          if (!sample)
20             abort_on_error("Couldn't alert 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.4.3                     load_voc(3)
Impressum