[pulseaudio-discuss] [PATCH] module: new null-source module

Colin Guthrie gmane at colin.guthr.ie
Wed Apr 27 06:18:43 PDT 2011


'Twas brillig, and Tanu Kaskinen at 27/04/11 12:59 did gyre and gimble:
> On Wed, 2011-04-27 at 14:50 +0300, Tanu Kaskinen wrote:
>> From: Marc-André Lureau <marcandre.lureau at gmail.com>
>>
>> ---
>>  src/Makefile.am                  |    6 +
>>  src/modules/module-null-source.c |  294 ++++++++++++++++++++++++++++++++++++++
>>  2 files changed, 300 insertions(+), 0 deletions(-)
>>  create mode 100644 src/modules/module-null-source.c
> 
> This module isn't actually used by anyone currently. We (at Nokia)
> switched to null-sink's monitor a long time ago (for reasons unknown to
> me), so the code hasn't had much testing lately. Even though there are
> no users for the module currently, I'm sending the patch anyway, just in
> case people think that the module might be useful in some situation.
> 
> I quickly tested that I can record silence with parec from source.null -
> I can't give any further guarantees that the code is correct.

Yeah due to the fact that a null sink has a null monitor, this module is
of limited usefulness, but I think it could still be useful in some
cases where you do want a null recording but don't want it polluted with
sinks.

I did actually have someone that wanted to hook up null sources and null
sinks to some Windows VMs a while back (several VMs but only one null
sink+monitor source). He was annoyed that he could record other VMs
output from within a separate VM on the monitor. Obviously he can
shuffle around the various streams and create multiple null sinks but it
would have actually been simpler to setup a null source in the first place.

So I'll do some testing then grab it at some point (tho' need to spend
some time reviewing Margarita's work before next week otherwise Liam and
Mark will find some way to punish me!)

Cheers

Col


-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mageia Contributor [http://www.mageia.org/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]




More information about the pulseaudio-discuss mailing list