Lines Matching defs:voice

39 static void snd_gf1_default_interrupt_handler_wave_and_volume(struct snd_gus_card * gus, struct snd_gus_voice * voice)
66 struct snd_gus_voice *voice;
68 voice = &gus->gf1.voices[what & 0xffff];
69 voice->handler_wave =
70 voice->handler_volume = snd_gf1_default_interrupt_handler_wave_and_volume;
71 voice->handler_effect = NULL;
72 voice->volume_change = NULL;
112 void snd_gf1_smart_stop_voice(struct snd_gus_card * gus, unsigned short voice)
117 snd_gf1_select_voice(gus, voice);
119 printk(KERN_DEBUG " -%i- smart stop voice - volume = 0x%x\n", voice, snd_gf1_i_read16(gus, SNDRV_GF1_VW_VOLUME));
126 void snd_gf1_stop_voice(struct snd_gus_card * gus, unsigned short voice)
131 snd_gf1_select_voice(gus, voice);
133 printk(KERN_DEBUG " -%i- stop voice - volume = 0x%x\n", voice, snd_gf1_i_read16(gus, SNDRV_GF1_VW_VOLUME));
141 snd_gf1_lfo_shutdown(gus, voice, ULTRA_LFO_VIBRATO);
142 snd_gf1_lfo_shutdown(gus, voice, ULTRA_LFO_TREMOLO);
161 snd_gf1_ctrl_stop(gus, SNDRV_GF1_VB_ADDRESS_CONTROL); /* Voice Control Register = voice stop */
164 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);
279 if (voice == NULL || !voice->use)
281 snd_gf1_set_default_handlers(gus, SNDRV_GF1_HANDLER_VOICE | voice->number);
282 snd_gf1_clear_voices(gus, voice->number, voice->number);
284 private_free = voice->private_free;
285 voice->private_free = NULL;
286 voice->private_data = NULL;
287 if (voice->pcm)
289 voice->use = voice->pcm = 0;
290 voice->sample_ops = NULL;
293 private_free(voice);