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

Colin Guthrie gmane at colin.guthr.ie
Thu Apr 28 06:15:58 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.

I have tested this but not 100% sure it's totally correct... I've
committed it anyway (we an always disable it easy enough if it doesn't
pass QA :p

I was able to load this and record from it but the vumeter in
pavucontrol was quite active and jumpy and when doing parec|pacat I did
get quite a lot of static (not a crazy amount, but more than I would
expect from pure silence... I doubt resampling would have caused the
level of static I saw).

So there might be some weirdness in there with the "silence" it produces
if anyone has a desire to have a peak....

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