From alsa-devel-owner@alsa.jcu.cz  Tue Mar 17 21:05:54 1998
Received: from sunu450.rz.ruhr-uni-bochum.de (sunu450.rz.ruhr-uni-bochum.de [134.147.222.33])
	by marvin.jcu.cz (8.8.8/8.8.8) with SMTP id VAA21002
	for <alsa-devel@jcu.cz>; Tue, 17 Mar 1998 21:05:52 +0100
Received: (qmail 14988 invoked from network); 17 Mar 1998 20:05:37 -0000
Received: from dialppp-1-92.rz.ruhr-uni-bochum.de (HELO localhost) (root@134.147.1.92)
  by mailhost.rz.ruhr-uni-bochum.de with SMTP; 17 Mar 1998 20:05:37 -0000
Received: by ruhr-uni-bochum.de
	via sendmail with stdio
	id <m0yF2ci-000NLlC@localhost> (Debian Smail3.2.0.101)
	for alsa-devel@jcu.cz; Tue, 17 Mar 1998 21:06:08 +0100 (CET) 
Message-ID: <19980317210608.04857@flora>
Date: Tue, 17 Mar 1998 21:06:08 +0100
From: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
To: Jaroslav Kysela <perex@jcu.cz>
Cc: alsa-devel@jcu.cz
Subject: Re: New Feature Idea
References: <19980317140204.12880@flora> <Pine.LNX.3.96.980317141811.16401D-100000@entry.jcu.cz>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
In-Reply-To: <Pine.LNX.3.96.980317141811.16401D-100000@entry.jcu.cz>; from Jaroslav Kysela on Tue, Mar 17, 1998 at 02:39:03PM +0100
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list

On Tue, Mar 17, 1998 at 02:39:03PM +0100, Jaroslav Kysela wrote:
> On Tue, 17 Mar 1998, Marcus Brinkmann wrote:
> 
> > I'm more interested in API C++ libraries than in low-level programming, so I
> > could give it a try, too. There are a couple of questions I have about your
> > project, but this can wait.
> 
> Ask me (and others) in this list if you want something. Project is still
> in initial stage and we can still make some big changes in ALSA kernel
> API.

I'm very lucky that there is such a project. My hope for good sound apps
under Linux vanished more and more with every line I saw in
linux/drivers/sound.

> > I attach a mixer class I wrote for OSS. I think I could reimplement it for
> > ALSA quite fast.
> 
> I'm waiting on your comments about current ALSA MIXER API...

I have a quick question right now: I saw a volume interface for percentage
(0-100) and dezibel. There is a rounding problem when scaling the 0-100 to
the real bounderies. What about a request function to get the maximum
values? It would be more exact, IMHO. I'm sorry if I missed something, as I
didn't had a close look at the source code yet.
 
> Your code looks good... Before begins any work on C++ library, here are my
> ideas:
> 
> 1) ALSA C++ library will use only functions from ALSA C library which
>    covers kernel API

Sure, EXTERN "C" is your friend...

> 2) ALSA C++ library should cover complete C library

I would think so. I have to check the functionality of the C library, but
with the additional C++ features, some things can be implemented very clean.

> 3) configuration of ALSA C++ library should be done over GNU autoconf
>    package (as each packages in ALSA project)

Ok.
 
> Any other ideas?

* How much compatibilty to OSS do you want to achieve (will ALSA be a drop-in
replacement) ?

* I would suggest exceptions for error handling in the C++ lib. gcc 2.7 has
problems with it, but it is the way to go.

Now that I see some hope for Linux sound, I will give this some thoughts.#
Maybe I have a longer list in a few days.

Thank you,
Marcus

-- 
"Rhubarb is no Egyptian god."        Debian GNU/Linux        finger brinkmd@ 
Marcus Brinkmann                   http://www.debian.org    master.debian.org
Marcus.Brinkmann@ruhr-uni-bochum.de                        for public  PGP Key
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/       PGP Key ID 36E7CD09

