Linux Audio

Check our new training course

Loading...
v5.4
 1/* SPDX-License-Identifier: GPL-2.0-or-later */
 2/*
 3 *  ALSA sequencer System Client
 4 *  Copyright (c) 1998 by Frank van de Pol <fvdpol@coil.demon.nl>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 5 */
 6#ifndef __SND_SEQ_SYSTEM_H
 7#define __SND_SEQ_SYSTEM_H
 8
 9#include <sound/seq_kernel.h>
10
11
12/* entry points for broadcasting system events */
13void snd_seq_system_broadcast(int client, int port, int type);
14
15#define snd_seq_system_client_ev_client_start(client) snd_seq_system_broadcast(client, 0, SNDRV_SEQ_EVENT_CLIENT_START)
16#define snd_seq_system_client_ev_client_exit(client) snd_seq_system_broadcast(client, 0, SNDRV_SEQ_EVENT_CLIENT_EXIT)
17#define snd_seq_system_client_ev_client_change(client) snd_seq_system_broadcast(client, 0, SNDRV_SEQ_EVENT_CLIENT_CHANGE)
18#define snd_seq_system_client_ev_port_start(client, port) snd_seq_system_broadcast(client, port, SNDRV_SEQ_EVENT_PORT_START)
19#define snd_seq_system_client_ev_port_exit(client, port) snd_seq_system_broadcast(client, port, SNDRV_SEQ_EVENT_PORT_EXIT)
20#define snd_seq_system_client_ev_port_change(client, port) snd_seq_system_broadcast(client, port, SNDRV_SEQ_EVENT_PORT_CHANGE)
21
22int snd_seq_system_notify(int client, int port, struct snd_seq_event *ev);
23
24/* register our internal client */
25int snd_seq_system_client_init(void);
26
27/* unregister our internal client */
28void snd_seq_system_client_done(void);
29
30
31#endif
v3.5.6
 
 1/*
 2 *  ALSA sequencer System Client
 3 *  Copyright (c) 1998 by Frank van de Pol <fvdpol@coil.demon.nl>
 4 *
 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 */
21#ifndef __SND_SEQ_SYSTEM_H
22#define __SND_SEQ_SYSTEM_H
23
24#include <sound/seq_kernel.h>
25
26
27/* entry points for broadcasting system events */
28void snd_seq_system_broadcast(int client, int port, int type);
29
30#define snd_seq_system_client_ev_client_start(client) snd_seq_system_broadcast(client, 0, SNDRV_SEQ_EVENT_CLIENT_START)
31#define snd_seq_system_client_ev_client_exit(client) snd_seq_system_broadcast(client, 0, SNDRV_SEQ_EVENT_CLIENT_EXIT)
32#define snd_seq_system_client_ev_client_change(client) snd_seq_system_broadcast(client, 0, SNDRV_SEQ_EVENT_CLIENT_CHANGE)
33#define snd_seq_system_client_ev_port_start(client, port) snd_seq_system_broadcast(client, port, SNDRV_SEQ_EVENT_PORT_START)
34#define snd_seq_system_client_ev_port_exit(client, port) snd_seq_system_broadcast(client, port, SNDRV_SEQ_EVENT_PORT_EXIT)
35#define snd_seq_system_client_ev_port_change(client, port) snd_seq_system_broadcast(client, port, SNDRV_SEQ_EVENT_PORT_CHANGE)
36
37int snd_seq_system_notify(int client, int port, struct snd_seq_event *ev);
38
39/* register our internal client */
40int snd_seq_system_client_init(void);
41
42/* unregister our internal client */
43void snd_seq_system_client_done(void);
44
45
46#endif