~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/synth/emux/emux_voice.h

Version: ~ [ linux-5.10-rc1 ] ~ [ linux-5.9.1 ] ~ [ linux-5.8.16 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.72 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.152 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.202 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.240 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.240 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.19.8 ] ~ [ linux-3.18.140 ] ~ [ linux-3.17.8 ] ~ [ linux-3.16.85 ] ~ [ linux-3.15.10 ] ~ [ linux-3.14.79 ] ~ [ linux-3.13.11 ] ~ [ linux-3.12.74 ] ~ [ linux-3.11.10 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 #ifndef __EMUX_VOICE_H
  2 #define __EMUX_VOICE_H
  3 
  4 /*
  5  * A structure to keep track of each hardware voice
  6  *
  7  *  Copyright (C) 1999 Steve Ratcliffe
  8  *  Copyright (c) 1999-2000 Takashi Iwai <tiwai@suse.de>
  9  *
 10  *   This program is free software; you can redistribute it and/or modify
 11  *   it under the terms of the GNU General Public License as published by
 12  *   the Free Software Foundation; either version 2 of the License, or
 13  *   (at your option) any later version.
 14  *
 15  *   This program is distributed in the hope that it will be useful,
 16  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 17  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 18  *   GNU General Public License for more details.
 19  *
 20  *   You should have received a copy of the GNU General Public License
 21  *   along with this program; if not, write to the Free Software
 22  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 23  */
 24 
 25 #include <sound/driver.h>
 26 #include <linux/wait.h>
 27 #include <linux/sched.h>
 28 #include <sound/core.h>
 29 #include <sound/emux_synth.h>
 30 
 31 /* Prototypes for emux_seq.c */
 32 int snd_emux_init_seq(snd_emux_t *emu, snd_card_t *card, int index);
 33 void snd_emux_detach_seq(snd_emux_t *emu);
 34 snd_emux_port_t *snd_emux_create_port(snd_emux_t *emu, char *name, int max_channels, int type, snd_seq_port_callback_t *callback);
 35 void snd_emux_reset_port(snd_emux_port_t *port);
 36 int snd_emux_event_input(snd_seq_event_t *ev, int direct, void *private, int atomic, int hop);
 37 int snd_emux_inc_count(snd_emux_t *emu);
 38 void snd_emux_dec_count(snd_emux_t *emu);
 39 int snd_emux_init_virmidi(snd_emux_t *emu, snd_card_t *card);
 40 int snd_emux_delete_virmidi(snd_emux_t *emu);
 41 
 42 /* Prototypes for emux_synth.c */
 43 void snd_emux_init_voices(snd_emux_t *emu);
 44 
 45 void snd_emux_note_on(void *p, int note, int vel, struct snd_midi_channel *chan);
 46 void snd_emux_note_off(void *p, int note, int vel, struct snd_midi_channel *chan);
 47 void snd_emux_key_press(void *p, int note, int vel, struct snd_midi_channel *chan);
 48 void snd_emux_terminate_note(void *p, int note, snd_midi_channel_t *chan);
 49 void snd_emux_control(void *p, int type, struct snd_midi_channel *chan);
 50 
 51 void snd_emux_sounds_off_all(snd_emux_port_t *port);
 52 void snd_emux_update_channel(snd_emux_port_t *port, snd_midi_channel_t *chan, int update);
 53 void snd_emux_update_port(snd_emux_port_t *port, int update);
 54 
 55 void snd_emux_timer_callback(unsigned long data);
 56 
 57 /* emux_effect.c */
 58 #ifdef SNDRV_EMUX_USE_RAW_EFFECT
 59 void snd_emux_create_effect(snd_emux_port_t *p);
 60 void snd_emux_delete_effect(snd_emux_port_t *p);
 61 void snd_emux_clear_effect(snd_emux_port_t *p);
 62 void snd_emux_setup_effect(snd_emux_voice_t *vp);
 63 void snd_emux_send_effect_oss(snd_emux_port_t *port, snd_midi_channel_t *chan, int type, int val);
 64 void snd_emux_send_effect(snd_emux_port_t *port, snd_midi_channel_t *chan, int type, int val, int mode);
 65 #endif
 66 
 67 /* emux_nrpn.c */
 68 void snd_emux_sysex(void *private_data, unsigned char *buf, int len, int parsed, snd_midi_channel_set_t *chset);
 69 int snd_emux_xg_control(snd_emux_port_t *port, snd_midi_channel_t *chan, int param);
 70 void snd_emux_nrpn(void *private_data, snd_midi_channel_t *chan, snd_midi_channel_set_t *chset);
 71 
 72 /* emux_oss.c */
 73 void snd_emux_init_seq_oss(snd_emux_t *emu);
 74 void snd_emux_detach_seq_oss(snd_emux_t *emu);
 75 
 76 /* emux_proc.c */
 77 #ifdef CONFIG_PROC_FS
 78 void snd_emux_proc_init(snd_emux_t *emu, snd_card_t *card, int device);
 79 void snd_emux_proc_free(snd_emux_t *emu);
 80 #endif
 81 
 82 #define STATE_IS_PLAYING(s) ((s) & SNDRV_EMUX_ST_ON)
 83 
 84 #endif
 85 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp