From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clemens Ladisch Subject: Re: Using MMAP feature Date: Mon, 23 Jul 2012 12:38:27 +0200 Message-ID: <500D29A3.50204@ladisch.de> References: <500CF994.5090901@seletech.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by alsa0.perex.cz (Postfix) with ESMTP id C5FE526523D for ; Mon, 23 Jul 2012 12:38:26 +0200 (CEST) In-Reply-To: <500CF994.5090901@seletech.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: alberto Villa Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org 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