Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Ville Syrjälä" <syrjala@sci.fi>
To: alsa-devel@lists.sourceforge.net
Cc: perex@suse.cz
Subject: [PATCH] Add snd_seq_subscribe_set_voices()
Date: Sun, 12 May 2002 03:33:18 +0300	[thread overview]
Message-ID: <20020512033318.B16784@sci.fi> (raw)

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

                 reply	other threads:[~2002-05-12  0:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020512033318.B16784@sci.fi \
    --to=syrjala@sci.fi \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=perex@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox