Module to sink to a device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Lennart,

Thanks for your reply.

I was just wondering. Can I re-use the module-pipe-sink such that
instead of operating on a FIFO Pipe file("/tmp/fifo.output") use my
/dev/XXX node? When I say re-use I'd change the way buffer size/sample
rate/format is changed as per my requirements.

Kindly throw some light on this. 

> > 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. 

Please Ignore the footer of this mail. :)

Thanks,
Nick

-----Original Message-----
From: pulseaudio-discuss-bounces@xxxxxxxxxxxxxxxx
[mailto:pulseaudio-discuss-bounces at mail.0pointer.de] On Behalf Of
Lennart Poettering
Sent: Saturday, April 18, 2009 11:40 PM
To: pulseaudio-discuss at mail.0pointer.de
Subject: Re: Module to sink to a device

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
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss at mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss

Please do not print this email unless it is absolutely necessary. 

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. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux