[OT] ALSA userspace API complexity

From: Alistair John Strachan
Date: Wed Jan 04 2006 - 04:39:11 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/