All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: knuarv@nith.no
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Set up buffers for individual channels?
Date: Wed, 09 Apr 2003 11:22:07 +0200	[thread overview]
Message-ID: <s5h8yukqb40.wl@alsa2.suse.de> (raw)
In-Reply-To: <1049827096.3e9317183693a@webmail.nith.no>

At Tue,  8 Apr 2003 20:38:16 +0200,
knuarv@nith.no wrote:
> 
> Quoting Takashi Iwai <tiwai@suse.de>:
> 
> > At Mon,  7 Apr 2003 23:49:06 +0200,
> > knuarv@nith.no wrote:
> > > 
> > > After browsing through the ASIO SDK I see that one can enable individual 
> > > channels of a card, and only enabled channels will have a buffer set up for
> > 
> > > them. Is there a similar way to specify the exact channels one wants to
> > access 
> > > using Alsa (instead of simply number of channels)? 
> > 
> > how about accessing via non-interleaved mode?
> >
> I'm experimenting with non-interleaved mmap now, but I can't say I understand 
> the workings of Alsa yet. From what I can see Alsa sets up memory areas for the 
> requested amount of channels (from 0 to 9 for instance), so I can choose myself 
> which buffers to actually use?

basically, you cannot give the buffer pointers from your side.
the buffer pointer will be given by the driver.

> I was thinking I could perhaps specify _which_ 
> channels I want to use, and get handed buffers for only those
> channels.

yes, in the case of non-interleaved mode, a single buffer will be
split for each channel.  so you can access them apparently as if they
are different buffers.

you can check aplay.c for the non-interleaved playback/recording
case.


ciao,

Takashi


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

      reply	other threads:[~2003-04-09  9:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-07 21:49 Set up buffers for individual channels? knuarv
2003-04-08 15:53 ` Takashi Iwai
2003-04-08 18:38   ` knuarv
2003-04-09  9:22     ` Takashi Iwai [this message]

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=s5h8yukqb40.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=knuarv@nith.no \
    /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 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.