Re: [linux-audio-dev] ALSA features.

From: Lee Revell <rlrevell@email-addr-hidden-job.com>
Date: Sun Sep 04 2005 - 04:20:54 EEST

On Sun, 2005-09-04 at 01:55 +0100, Dan Mills wrote:
> On Nice features, How about a helper function in the library to
> convert given
> number of blocks of samples as say floats into the correct buffer
> format to
> pass to the soundcard? It would cut lot a lot of (paraphrasing):
>
> if (snd_format = INTERLEAVED)
> .
> .
> .
> else if (snd_format == NON_INTERLEAVED)
> .
> .
> .
> else if (....)

The ALSA plug layer already handles the case where the app can only play
interleaved and the hardware can only do noninterleaved.

I suspect the above is so common because people just copy the example
programs that come with alsa-lib.

Lee
Received on Sun Sep 4 08:15:04 2005

This archive was generated by hypermail 2.1.8 : Sun Sep 04 2005 - 08:15:04 EEST