[linux-audio-dev] ALSA features.
    Lee Revell 
    rlrevell at joe-job.com
       
    Sun Sep  4 01:20:54 UTC 2005
    
    
  
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
    
    
More information about the Linux-audio-dev
mailing list