reallocate_voice

Switches the sample of an already-allocated voice.

Description

void reallocate_voice(int voice, const SAMPLE *spl);
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 Projects

The following projects include source code containing this keyword: