opl3_voice.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef __OPL3_VOICE_H
  2. #define __OPL3_VOICE_H
  3. /*
  4. * Copyright (c) 2000 Uros Bizjak <uros@kss-loka.si>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  19. */
  20. #include <sound/opl3.h>
  21. /* Prototypes for opl3_seq.c */
  22. int snd_opl3_synth_use_inc(struct snd_opl3 * opl3);
  23. void snd_opl3_synth_use_dec(struct snd_opl3 * opl3);
  24. int snd_opl3_synth_setup(struct snd_opl3 * opl3);
  25. void snd_opl3_synth_cleanup(struct snd_opl3 * opl3);
  26. /* Prototypes for opl3_midi.c */
  27. void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan);
  28. void snd_opl3_note_off(void *p, int note, int vel, struct snd_midi_channel *chan);
  29. void snd_opl3_key_press(void *p, int note, int vel, struct snd_midi_channel *chan);
  30. void snd_opl3_terminate_note(void *p, int note, struct snd_midi_channel *chan);
  31. void snd_opl3_control(void *p, int type, struct snd_midi_channel *chan);
  32. void snd_opl3_nrpn(void *p, struct snd_midi_channel *chan, struct snd_midi_channel_set *chset);
  33. void snd_opl3_sysex(void *p, unsigned char *buf, int len, int parsed, struct snd_midi_channel_set *chset);
  34. void snd_opl3_calc_volume(unsigned char *reg, int vel, struct snd_midi_channel *chan);
  35. void snd_opl3_timer_func(unsigned long data);
  36. /* Prototypes for opl3_drums.c */
  37. void snd_opl3_load_drums(struct snd_opl3 *opl3);
  38. void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int vel, int on_off, struct snd_midi_channel *chan);
  39. /* Prototypes for opl3_oss.c */
  40. #ifdef CONFIG_SND_SEQUENCER_OSS
  41. void snd_opl3_init_seq_oss(struct snd_opl3 *opl3, char *name);
  42. void snd_opl3_free_seq_oss(struct snd_opl3 *opl3);
  43. #endif
  44. #endif