reallocate_voice.3alleg

Langue: en

Version: version 4.2.2 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

reallocate_voice - Switches the sample of an already-allocated voice. Allegro game programming library.

SYNOPSIS

#include <allegro.h>

void reallocate_voice(int voice, const SAMPLE *spl);

DESCRIPTION

Switches an already-allocated voice to use a different sample. Calling reallocate_voice(voice, sample) is equivalent to:
    deallocate_voice(voice);
    voice = allocate_voice(sample);
 

SEE ALSO

allocate_voice(3alleg), deallocate_voice(3alleg), load_sample(3alleg)