nested functions in pulse.c where removed, but pa_mainloop had to be declared globaly in order to close loop after finding default sink name this might cause more problems in the future.