[pulseaudio-discuss] Writing an output module
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:
>>> 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: 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.
> 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:
(some bits are now a little out of date the the majority holds true still).
Tribalogic Limited [http://www.tribalogic.net/]
Mageia Contributor [http://www.mageia.org/]
PulseAudio Hacker [http://www.pulseaudio.org/]
Trac Hacker [http://trac.edgewall.org/]
More information about the pulseaudio-discuss