[pulseaudio-discuss] Some problem writing a pulseaudio equalizer module

Andrea A andrea69x at hotmail.it
Tue Dec 27 16:33:58 UTC 2016

I'm trying to write a pulseaudio module for an equalizer, I'm using as 
examples others modules on pulseaudio source code and this is my source code:

Now I'm trying to run this module without rewind for debugging purpose but It 
does not work.
To debug the module I'm using pa_log that writes some log execution 
information and this is an example of my log:

After a few attempts I tried to generate a simple sin wave to test the module 
instead filter and in the code in "sink_input_pop_cb" you can see that I 
commented the filter line and I replaced it with 
that generate a sinusoidal wave of 500Hz

However the module doesn't work as expected
1) The module crash always after a while with the warning (in the log):
 W: [pulseaudio] pid.c: Stale PID file, overwriting

2) If I run the module during a sound playing the sin wave is played but mixed 
on the sound. I expect that only the sin wave is reproduced

3) If I run the module when no sound is played it crash just I play a sound

Can someone help me with this module. I do not understand what the problem is.
Thank you so much


More information about the pulseaudio-discuss mailing list