Lines Matching defs:voice
57 static void snd_gf1_default_interrupt_handler_wave_and_volume(struct snd_gus_card * gus, struct snd_gus_voice * voice)
84 struct snd_gus_voice *voice;
86 voice = &gus->gf1.voices[what & 0xffff];
87 voice->handler_wave =
88 voice->handler_volume = snd_gf1_default_interrupt_handler_wave_and_volume;
89 voice->handler_effect = NULL;
90 voice->volume_change = NULL;
130 void snd_gf1_smart_stop_voice(struct snd_gus_card * gus, unsigned short voice)
135 snd_gf1_select_voice(gus, voice);
141 void snd_gf1_stop_voice(struct snd_gus_card * gus, unsigned short voice)
146 snd_gf1_select_voice(gus, voice);
165 snd_gf1_ctrl_stop(gus, SNDRV_GF1_VB_ADDRESS_CONTROL); /* Voice Control Register = voice stop */
168 snd_gf1_write8(gus, SNDRV_GF1_VB_MODE, gus->gf1.memory ? 0x02 : 0x82); /* Deactivate voice */
274 void snd_gf1_free_voice(struct snd_gus_card * gus, struct snd_gus_voice *voice)
277 void (*private_free)(struct snd_gus_voice *voice);
280 if (voice == NULL || !voice->use)
282 snd_gf1_set_default_handlers(gus, SNDRV_GF1_HANDLER_VOICE | voice->number);
283 snd_gf1_clear_voices(gus, voice->number, voice->number);
285 private_free = voice->private_free;
286 private_data = voice->private_data;
287 voice->private_free = NULL;
288 voice->private_data = NULL;
289 if (voice->pcm)
291 voice->use = voice->pcm = 0;
292 voice->sample_ops = NULL;
295 private_free(voice);