* [PATCH] Add snd_seq_subscribe_set_voices()
@ 2002-05-12 0:33 Ville Syrjälä
0 siblings, 0 replies; only message in thread
From: Ville Syrjälä @ 2002-05-12 0:33 UTC (permalink / raw)
To: alsa-devel; +Cc: perex
I need this function for my MikMod driver.
Index: alsa-lib/include/seq.h
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/include/seq.h,v
retrieving revision 1.47
diff -u -r1.47 seq.h
--- alsa-lib/include/seq.h 17 Apr 2002 08:50:56 -0000 1.47
+++ alsa-lib/include/seq.h 12 May 2002 00:24:25 -0000
@@ -309,6 +309,7 @@
void snd_seq_port_subscribe_set_sender(snd_seq_port_subscribe_t *info,
const snd_seq_addr_t *addr);
void snd_seq_port_subscribe_set_dest(snd_seq_port_subscribe_t *info,
const snd_seq_addr_t *addr);
void snd_seq_port_subscribe_set_queue(snd_seq_port_subscribe_t *info, int
q);
+void snd_seq_port_subscribe_set_voices(snd_seq_port_subscribe_t *info,
unsigned int voices);
void snd_seq_port_subscribe_set_exclusive(snd_seq_port_subscribe_t *info,
int val);
void snd_seq_port_subscribe_set_time_update(snd_seq_port_subscribe_t
*info, int val);
void snd_seq_port_subscribe_set_time_real(snd_seq_port_subscribe_t *info,
int val);
Index: alsa-lib/src/seq/seq.c
===================================================================
RCS file: /cvsroot/alsa/alsa-lib/src/seq/seq.c,v
retrieving revision 1.79
diff -u -r1.79 seq.c
--- alsa-lib/src/seq/seq.c 12 Mar 2002 20:14:34 -0000 1.79
+++ alsa-lib/src/seq/seq.c 12 May 2002 00:24:32 -0000
@@ -1456,6 +1456,17 @@
}
/**
+ * \brief Set the voices of a port_subscribe container
+ * \param info port_subscribe container
+ * \param voices voices to be allocated (0 = don't care)
+ */
+void snd_seq_port_subscribe_set_voices(snd_seq_port_subscribe_t *info,
unsigned int voices)
+{
+ assert(info);
+ info->voices = voices;
+}
+
+/**
* \brief Set the exclusive mode of a port_subscribe container
* \param info port_subscribe container
* \param val non-zero to enable
--
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth@sourceforge.net
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-05-12 0:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-12 0:33 [PATCH] Add snd_seq_subscribe_set_voices() Ville Syrjälä
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.