#include #include "n_synth.h" void n_alSynStopVoice( N_ALVoice *v) { ALParam *update; if (v->pvoice) { update = __n_allocParam(); ALFailIf(update == 0, ERR_ALSYN_NO_UPDATE); update->delta = n_syn->paramSamples + v->pvoice->offset; update->type = AL_FILTER_STOP_VOICE; update->next = 0; n_alEnvmixerParam(v->pvoice, AL_FILTER_ADD_UPDATE, update); } }