Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: alberto Villa <a.villa@seletech.com>
Cc: alsa-devel@alsa-project.org
Subject: Re: Using MMAP feature
Date: Mon, 23 Jul 2012 12:38:27 +0200	[thread overview]
Message-ID: <500D29A3.50204@ladisch.de> (raw)
In-Reply-To: <500CF994.5090901@seletech.com>

alberto Villa wrote:> Hello,
> I'm going to use the MMAP feature of ALSA.

Why do you need to do this?

> snd_pcm_mmap_begin(capture, &c_area, &c_offset, &c_frames);
>
> it keeps to return c_frames = 0: is it right ? what does this mean?

It means that there are no samples available at the moment.
(Or that you forgot to call snd_pcm_avail_update(), or that you
didn't set c_frames before the call.)


Regards,
Clemens

  reply	other threads:[~2012-07-23 10:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-23  7:13 Using MMAP feature alberto Villa
2012-07-23 10:38 ` Clemens Ladisch [this message]
     [not found]   ` <500D40D5.6050606@seletech.com>
2012-07-23 14:46     ` Clemens Ladisch

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=500D29A3.50204@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=a.villa@seletech.com \
    --cc=alsa-devel@alsa-project.org \
    /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