[linux-audio-dev] Re: [Alsa-devel] alsa 1.0.0 API changes???

Jaroslav Kysela perex at suse.cz
Tue Dec 9 18:03:13 UTC 2003


On Tue, 9 Dec 2003, Maarten de Boer wrote:

> Hello,
> 
> I have been unsubscribed from alsa-devel for a while, so maybe i missed
> the discussion about this, but a quick look at the archives did not reveal
> anything.
> 
> I just downloaded alsa 1.0.0rc2, and discovered that the API changed.
> For example (and this is only an example), take the function
> snd_pcm_hw_params_set_rate_near. Before, the 3th argument was the
> samplerate requested, and the return value was the error value (<0) or
> the samplerate obtained.
> 
> err = snd_pcm_hw_params_set_rate_near(handle, params, rate, 0);
> 
> Now, the third argument is a _pointer_, used to pass the requested value
> _and_ to return the obtained samplerate. Note that the symbol is
> identical, and that an application compiled against the old version will
> happily link against the new version (but surely fail when executing!)
> (or am I missing something here??)
> 
> I clearly see the advantage of the new, cleaner, approach, but I still
> remember the past ALSA API changes, and I was under the impression that
> that would not happen again. I also thought that the 0.9.x releases were
> a straight line to work towards the 1.0 release. So I am very surprised
> to see this happen. If this has been discussed / announced somewhere,
> than I am sorry for having missed it, but in any case, I think it might
> be good to place a notice on the alsa web page.

See 
http://www.mail-archive.com/alsa-devel@lists.sourceforge.net/msg09892.html

						Jaroslav

-----
Jaroslav Kysela <perex at suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs



More information about the Linux-audio-dev mailing list