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: https://github.com/andrea993/audioeqpro/blob/master/pulsemodule/module-test.c 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: http://pastebin.com/m40ScgLT 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 *dst=sin(2*M_PI*500*foo_t); 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 Regards, Andrea