Skip to contentSkip to conversation

Add snd_seq_subscribe_set_voices()

PATCH New Ville Syrjälä 1 participant 1 message May 12, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add snd_seq_subscribe_set_voices()

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

include/seq.h +0 -0
diff -u -r1.47 seq.h
@@ -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

src/seq/seq.c +5 -0
diff -u -r1.79 seq.c
@@ -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

Signature · 8 lines
Ville Syrjälä
[email protected]
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: [email protected]