[pulseaudio-discuss] why command_cork_playback_stream() will be invoked many times?

Zhang, Xing Z xing.z.zhang at intel.com
Fri Jan 9 05:10:00 PST 2009


Hi experts:
	I worked on an audiomanager project based on PulseAudio. Now I am blocked by a command_cork_playback_stream() issue.
	In our design, an application may be corked when connects to pulseaudio if its priority is low. I set a hook on PA_CORE_HOOK_SINK_INPUT_PUT and invoke pa_sink_input_cork(..., TRUE). Unfortunately it doesn't work. By GDB, I found application will call command_cork_playback_stream() which invokes pa_sink_input_cork(..., FALSE) several times, this make my hook is of no effect. I don't look into PA for ALSA plugin, anyone know why command_cork_playback_stream() need be called so frequently during app initialization?
	



More information about the pulseaudio-discuss mailing list