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);

RELATED TO reallocate_voice…

allocate_voice(3alleg4), deallocate_voice(3alleg4), load_sample(3alleg4)