[pulseaudio-discuss] glib functions on PA

Arun Raghavan arun.raghavan at collabora.co.uk
Wed Apr 20 21:43:24 PDT 2011

On Wed, 2011-04-20 at 23:26 -0500, Margarita Olaya wrote:
> Hi,
> The initial implementation of  jack detection is using threads and
> simple file operations like open, close and read currently I'm looking
> into using pa_threads and glib functions. First step It is simple
> enough e.g change threads by pa_threads and for file operations I have
> u->fd = g_open(u->device_id, O_RDONLY)
> ioch = g_io_channel_unix_new(u->fd);
> then use g_io_channel_read_chars() instead of read.
> I'm wonder if it is the beast approach or I'm missing any PA function
> that fits better for this purpose.

I'm not aware of any PA code that uses glib for this. module-pipe-sink
seems to do most of the things you need so that might serve as a good
starting point.

-- Arun

More information about the pulseaudio-discuss mailing list