[pulseaudio-discuss] Writing an output module

Colin Guthrie gmane at colin.guthr.ie
Sun Jul 17 06:25:56 PDT 2011


'Twas brillig, and Damien DEJEAN at 17/07/11 13:51 did gyre and gimble:
> 
> 
> Le 17/07/2011 13:32, Colin Guthrie a écrit :
>> 'Twas brillig, and Damien DEJEAN at 17/07/11 10:19 did gyre and gimble:
>>> Hello,
>>>
>>> I'm writing a sink module to communicate with a home-made audio server.
>>> I follow your advice to use the RAOP module code as a support. So I keep
>>> the structure, I can compile it but I'm not able to load the new module
>>> anymore. I put it in /usr/lib/pulse-0.9.22/modules but when I run
>>>
>>> pactl load-module module-spam-sink
>>>
>>> it doesn't work (Failure in module initialisation) and the log says me:
>>>
>>> pulseaudio[2340]: module.c: Failed to open module "module-spam-sink":
>>> file not found
>>>
>>> Could you, please, explain me how I can easily load the module ?
>> Are you compiling your module against git master then copying it into
>> the 0.9.22 tree? If so this won't work. You need to keep the whole tree
>> the same. You can probably get away with checking out the v0.9.22 git
>> tree and compiling your module there but really you shouldn't try and
>> mix and match your self compiled module with your system compiled PA.
>>
>> Col
>>
> I got the 0.9.22 release sources on the website, not the from the git
> repository. Then I did a
> ./configure to get the config.h, and I built a little Makefile to
> compile the module
> without compiling all PA.
> I'll try to compile with the sources from the ubuntu package.

Yeah out of tree module building is not officially supported.

If you want to compile and run from git without trashing your install,
just see here:
http://colin.guthr.ie/2010/09/compiling-and-running-pulseaudio-from-git/

(some bits are now a little out of date the the majority holds true still).

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