From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlo Wood Subject: snd_pcm_mmap_begin returns 0 but sets areas to NULL Date: Tue, 22 Jul 2003 15:51:58 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: <20030722135158.GA12258@alinoe.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: "alsa-devel@lists.sourceforge.net" List-Id: alsa-devel@alsa-project.org Is it ever allowed that: snd_pcm_channel_area_t const* areas; snd_pcm_uframes_t offset; snd_pcm_uframes_t size = period_size; if (size > 0) { snd_pcm_uframes_t frames = size; int err = snd_pcm_mmap_begin(handle, &areas, &offset, &frames); returns err == 0, but results in areas == NULL ? Or is that a bug in alsa? -- Carlo Wood ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0