Re: [LAD] PCM player as kernel module

From: Forest Bond <forest@email-addr-hidden>
Date: Thu Nov 01 2007 - 19:12:45 EET

Hi,

On Wed, Oct 31, 2007 at 06:48:39PM +0530, Avadhoot Punde wrote:
> As part of a bigger project, I need to develop a module which reads PCM data
> from a file and feeds it to sound driver. Is it possible to develop such a
> module without actually writing device driver, I mean just by using existing
> functions such as snd_pcm_open and all that ? Can someone throw more light on
> this ?

Why not just use aplay?

$ cat myfile | aplay -

... or so. For raw PCM data, you should use the correct aplay options to
specify the format. See the manpage.

You used to be able to do this with OSS:

$ cat myfile > /dev/dsp

I don't know if this is still possible with ALSA.

-Forest

-- 
Forest Bond
http://www.alittletooquiet.net

_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev

Received on Thu Nov 1 20:15:02 2007

This archive was generated by hypermail 2.1.8 : Thu Nov 01 2007 - 20:15:02 EET