• Home
  • Raw
  • Download

Lines Matching refs:chan

15 				     struct snd_midi_channel *chan);
47 struct snd_midi_channel *chan) in snd_opl3_calc_volume() argument
52 volume = (vel * chan->gm_volume * chan->gm_expression) / (127*127); in snd_opl3_calc_volume()
80 int note, struct snd_midi_channel *chan) in snd_opl3_calc_pitch() argument
86 if (chan->midi_pitchbend) { in snd_opl3_calc_pitch()
87 int pitchbend = chan->midi_pitchbend; in snd_opl3_calc_pitch()
125 struct snd_midi_channel *chan) { in opl3_get_voice() argument
236 vp->chan); in snd_opl3_timer_func()
275 void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan) in snd_opl3_note_on() argument
307 chan->number, chan->midi_program, note, vel); in snd_opl3_note_on()
313 if (chan->drum_channel) { in snd_opl3_note_on()
318 bank = chan->gm_bank_select; in snd_opl3_note_on()
319 prg = chan->midi_program; in snd_opl3_note_on()
323 if (chan->number >= MAX_OPL3_VOICES) in snd_opl3_note_on()
328 prg = chan->midi_program; in snd_opl3_note_on()
334 snd_opl3_drum_switch(opl3, note, vel, 1, chan); in snd_opl3_note_on()
368 voice = opl3_get_voice(opl3, instr_4op, chan); in snd_opl3_note_on()
371 voice = snd_opl3_oss_map[chan->number]; in snd_opl3_note_on()
441 snd_opl3_calc_volume(&vol_op[3], vel, chan); in snd_opl3_note_on()
444 snd_opl3_calc_volume(&vol_op[2], vel, chan); in snd_opl3_note_on()
447 snd_opl3_calc_volume(&vol_op[0], vel, chan); in snd_opl3_note_on()
450 snd_opl3_calc_volume(&vol_op[1], vel, chan); in snd_opl3_note_on()
453 snd_opl3_calc_volume(&vol_op[1], vel, chan); in snd_opl3_note_on()
455 snd_opl3_calc_volume(&vol_op[0], vel, chan); in snd_opl3_note_on()
495 if (chan->gm_pan < 43) in snd_opl3_note_on()
497 if (chan->gm_pan > 85) in snd_opl3_note_on()
507 if (chan->gm_pan < 43) in snd_opl3_note_on()
509 if (chan->gm_pan > 85) in snd_opl3_note_on()
529 snd_opl3_calc_pitch(&fnum, &blocknum, note, chan); in snd_opl3_note_on()
562 vp->chan = chan; in snd_opl3_note_on()
570 vp2->chan = chan; in snd_opl3_note_on()
654 struct snd_midi_channel *chan) in snd_opl3_note_off_unsafe() argument
665 chan->number, chan->midi_program, note); in snd_opl3_note_off_unsafe()
669 if (chan->drum_channel && use_internal_drums) { in snd_opl3_note_off_unsafe()
670 snd_opl3_drum_switch(opl3, note, vel, 0, chan); in snd_opl3_note_off_unsafe()
677 if (vp->state > 0 && vp->chan == chan && vp->note == note) { in snd_opl3_note_off_unsafe()
683 if (chan->number < MAX_OPL3_VOICES) { in snd_opl3_note_off_unsafe()
684 voice = snd_opl3_oss_map[chan->number]; in snd_opl3_note_off_unsafe()
691 struct snd_midi_channel *chan) in snd_opl3_note_off() argument
697 snd_opl3_note_off_unsafe(p, note, vel, chan); in snd_opl3_note_off()
704 void snd_opl3_key_press(void *p, int note, int vel, struct snd_midi_channel *chan) in snd_opl3_key_press() argument
708 chan->number, chan->midi_program); in snd_opl3_key_press()
715 void snd_opl3_terminate_note(void *p, int note, struct snd_midi_channel *chan) in snd_opl3_terminate_note() argument
719 chan->number, chan->midi_program); in snd_opl3_terminate_note()
737 if (vp->chan == NULL) in snd_opl3_update_pitch()
750 snd_opl3_calc_pitch(&fnum, &blocknum, vp->note, vp->chan); in snd_opl3_update_pitch()
771 static void snd_opl3_pitch_ctrl(struct snd_opl3 *opl3, struct snd_midi_channel *chan) in snd_opl3_pitch_ctrl() argument
783 if (vp->state > 0 && vp->chan == chan) { in snd_opl3_pitch_ctrl()
789 if (chan->number < MAX_OPL3_VOICES) { in snd_opl3_pitch_ctrl()
790 voice = snd_opl3_oss_map[chan->number]; in snd_opl3_pitch_ctrl()
801 void snd_opl3_control(void *p, int type, struct snd_midi_channel *chan) in snd_opl3_control() argument
808 type, chan->number, chan->midi_program); in snd_opl3_control()
813 if (chan->control[MIDI_CTL_MSB_MODWHEEL] > 63) in snd_opl3_control()
821 if (chan->control[MIDI_CTL_E2_TREMOLO_DEPTH] > 63) in snd_opl3_control()
829 snd_opl3_pitch_ctrl(opl3, chan); in snd_opl3_control()
837 void snd_opl3_nrpn(void *p, struct snd_midi_channel *chan, in snd_opl3_nrpn() argument
842 chan->number, chan->midi_program); in snd_opl3_nrpn()