2 * GStreamer pulseaudio plugin
4 * Copyright (c) 2004-2008 Lennart Poettering
6 * gst-pulse is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation; either version 2.1 of the
9 * License, or (at your option) any later version.
11 * gst-pulse is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with gst-pulse; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 #ifndef __GST_PULSEUTIL_H__
23 #define __GST_PULSEUTIL_H__
30 #include <pulse/pulseaudio.h>
31 #include <gst/audio/gstaudioringbuffer.h>
32 #include <gst/audio/gstaudiosink.h>
34 gboolean gst_pulse_fill_sample_spec (GstAudioRingBufferSpec * spec,
36 gboolean gst_pulse_fill_format_info (GstAudioRingBufferSpec * spec,
37 pa_format_info ** f, guint * channels);
39 gchar *gst_pulse_client_name (void);
41 pa_channel_map *gst_pulse_gst_to_channel_map (pa_channel_map * map,
42 const GstAudioRingBufferSpec * spec);
44 GstAudioRingBufferSpec *gst_pulse_channel_map_to_gst (const pa_channel_map * map,
45 GstAudioRingBufferSpec * spec);
47 void gst_pulse_cvolume_from_linear (pa_cvolume *v, unsigned channels, gdouble volume);
49 pa_proplist *gst_pulse_make_proplist (const GstStructure *properties);