load_voc_pf (3) - Linux Manuals
load_voc_pf: Packfile version of load_voc. Allegro game programming library.
Command to display load_voc_pf
manual in Linux: $ man 3 load_voc_pf
NAME
load_voc_pf - Packfile version of load_voc. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
SAMPLE *load_voc_pf(PACKFILE *f);
DESCRIPTION
A version of load_voc() which reads from a packfile. Example:
PACKFILE *packfile;
SAMPLE *sample;
packfile = pack_fopen("sound.wav", F_READ);
if (!packfile)
abort_on_error("Couldn't open sound.wav");
sample = load_wav_pf(packfile);
if (!sample)
abort_on_error("Error loading sound.wav");
RETURN VALUE
Returns a pointer to the SAMPLE or NULL on error. Remember to free this
sample later to avoid memory leaks.
Pages related to load_voc_pf
- load_voc (3) - Loads a sample from a Creative Labs VOC file. Allegro game programming library.
- load_bios_font (3) - Loads a 8x8 or 8x16 BIOS format font. Allegro game programming library.
- load_bitmap (3) - Loads any supported bitmap from a file. Allegro game programming library.
- load_bitmap_font (3) - Grabs a font from a bitmap file. Allegro game programming library.
- load_bmp (3) - Loads a BMP bitmap from a file. Allegro game programming library.
- load_bmp_pf (3) - Packfile version of load_bmp. Allegro game programming library.
- load_dat_font (3) - Loads a FONT from an Allegro datafile.
- load_datafile (3) - Loads a datafile into memory. Allegro game programming library.
- load_datafile_callback (3) - Loads a datafile into memory, calling a hook per object. Allegro game programming library.