seq_oss_midi.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * OSS compatible sequencer driver
  3. *
  4. * midi device information
  5. *
  6. * Copyright (C) 1998,99 Takashi Iwai <tiwai@suse.de>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. */
  22. #ifndef __SEQ_OSS_MIDI_H
  23. #define __SEQ_OSS_MIDI_H
  24. #include "seq_oss_device.h"
  25. #include <sound/seq_oss_legacy.h>
  26. int snd_seq_oss_midi_lookup_ports(int client);
  27. int snd_seq_oss_midi_check_new_port(struct snd_seq_port_info *pinfo);
  28. int snd_seq_oss_midi_check_exit_port(int client, int port);
  29. void snd_seq_oss_midi_clear_all(void);
  30. void snd_seq_oss_midi_setup(struct seq_oss_devinfo *dp);
  31. void snd_seq_oss_midi_cleanup(struct seq_oss_devinfo *dp);
  32. int snd_seq_oss_midi_open(struct seq_oss_devinfo *dp, int dev, int file_mode);
  33. void snd_seq_oss_midi_open_all(struct seq_oss_devinfo *dp, int file_mode);
  34. int snd_seq_oss_midi_close(struct seq_oss_devinfo *dp, int dev);
  35. void snd_seq_oss_midi_reset(struct seq_oss_devinfo *dp, int dev);
  36. int snd_seq_oss_midi_putc(struct seq_oss_devinfo *dp, int dev, unsigned char c,
  37. struct snd_seq_event *ev);
  38. int snd_seq_oss_midi_input(struct snd_seq_event *ev, int direct, void *private);
  39. int snd_seq_oss_midi_filemode(struct seq_oss_devinfo *dp, int dev);
  40. int snd_seq_oss_midi_make_info(struct seq_oss_devinfo *dp, int dev, struct midi_info *inf);
  41. void snd_seq_oss_midi_get_addr(struct seq_oss_devinfo *dp, int dev, struct snd_seq_addr *addr);
  42. #endif