Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751644AbWADJk2 (ORCPT ); Wed, 4 Jan 2006 04:40:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751640AbWADJk2 (ORCPT ); Wed, 4 Jan 2006 04:40:28 -0500 Received: from mail.metronet.co.uk ([213.162.97.75]:7125 "EHLO mail.metronet.co.uk") by vger.kernel.org with ESMTP id S1751448AbWADJk1 convert rfc822-to-8bit (ORCPT ); Wed, 4 Jan 2006 04:40:27 -0500 From: Alistair John Strachan To: Tomasz =?utf-8?q?K=C5=82oczko?= Subject: [OT] ALSA userspace API complexity Date: Wed, 4 Jan 2006 09:37:55 +0000 User-Agent: KMail/1.9 Cc: Adrian Bunk , Olivier Galibert , Tomasz Torcz , Jan Engelhardt , Andi Kleen , perex@suse.cz, alsa-devel@alsa-project.org, James@superbug.demon.co.uk, sailer@ife.ee.ethz.ch, linux-sound@vger.kernel.org, zab@zabbo.net, kyle@parisc-linux.org, parisc-linux@lists.parisc-linux.org, jgarzik@pobox.com, Thorsten Knabe , zwane@commfireservices.com, zaitcev@yahoo.com, linux-kernel@vger.kernel.org References: <20050726150837.GT3160@stusta.de> <20060103193736.GG3831@stusta.de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8BIT Content-Disposition: inline Message-Id: <200601040937.55624.s0348365@sms.ed.ac.uk> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1283 Lines: 33 On Tuesday 03 January 2006 23:10, Tomasz Kłoczko wrote: [snip] > > 2) ALSA API is to complicated: most applications opens single sound > stream. FUD and nonsense. I've written many DSP applications and very often I can recycle the same code for use in them. Here's an example, abstracted, commented, handling errors from the subsystem, in just over 100 LOC. http://devzero.co.uk/~alistair/alsa/ The API is really _only_ complicated because it expects you to set things OSS either can't handle or doesn't allow you to configure. Things that very often an application will eventually care about. All this for the sake of 5 minutes reading documentation, and each API call almost identical in design. Personally, I found the lack of documentation for some of the setup API annoying, but it's since been rectified and each call is humanly understandable. -- Cheers, Alistair. 'No sense being pessimistic, it probably wouldn't work anyway.' Third year Computer Science undergraduate. 1F2 55 South Clerk Street, Edinburgh, UK. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/