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

NAME

6       load_voc_pf  -  Packfile  version of load_voc. Allegro game programming
7       library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       SAMPLE *load_voc_pf(PACKFILE *f);
14

DESCRIPTION

16       A version of load_voc() which reads from a packfile. Example:
17
18          PACKFILE *packfile;
19          SAMPLE *sample;
20
21          packfile = pack_fopen("sound.wav", F_READ);
22          if (!packfile)
23             abort_on_error("Couldn't open sound.wav");
24
25          sample = load_wav_pf(packfile);
26          if (!sample)
27             abort_on_error("Error loading sound.wav");
28

RETURN VALUE

30       Returns a pointer to the SAMPLE or NULL on error. Remember to free this
31       sample later to avoid memory leaks.
32
33

SEE ALSO

35       load_voc(3)
36
37
38
39Allegro                          version 4.4.3                  load_voc_pf(3)
Impressum