[pulseaudio-discuss] Module to sink to a device
Lennart Poettering
lennart at poettering.net
Sat Apr 18 11:10:21 PDT 2009
On Fri, 17.04.09 18:53, nikhil.rao at wipro.com (nikhil.rao at wipro.com) wrote:
> Hi,
Heya!
> I am very new to pulseaudio and this forum. Hence I am not sure if this
> topic has already been discussed here.
>
> I am working in Linux environment. I have a device and a corresponding
> device driver that is capable of handling synchronous audio. The device
> is exposed in a form of simple device node say "/dev/XXX".
>
> So my question is can I develop a loadable module which can sink to the
> /dev/XXX device? Is there any module currently which works in my
> direction?
All output modules for Unix kernel APIs work like that. The ALSA, the
OSS and the Solaris driver too.
If you work on Linux and you are working on a kernel audio driver then
the best solution is to simply make it a proper ALSA driver. That
would free you from writing a special PA module for that.
> I have gone through the existing set of modules, I found that module-oss
> and module-solaris sink/source currenlty is capable of open/write/read
> device like /dev/dsp (please correct me if I am wrong).
Yes.
> It would be great if I get any sort of pointers on how to approach on
> this.
There a couple of pages in the wiki that explain how to write PA
plugins. Take them with a grain of salt however, since they tend to be
out of date. Otherwise: read the sources! If you have questions ask
them on the ML or on #pulseaudio on freenode.
> The information contained in this electronic message and any
> attachments to this message are intended for the exclusive use of
> the addressee(s) and may contain proprietary, confidential or
> privileged information. If you are not the intended recipient, you
> should not disseminate, distribute or copy this e-mail. Please
> notify the sender immediately and destroy all copies of this message
> and any attachments.
Nice. Maybe you shouldn't post anything to a public mailing list with
nonsensical demands like this. I mean, come on, all our traffic is
archived in public mailing list archives.
Lennart
--
Lennart Poettering Red Hat, Inc.
lennart [at] poettering [dot] net ICQ# 11060553
http://0pointer.net/lennart/ GnuPG 0x1A015CC4
More information about the pulseaudio-discuss
mailing list