Merge branch 'upstream/1.16' into tizen_gst_1.16.2
[platform/upstream/gst-plugins-good.git] / ext / pulse / pulsesrc.h
index 93d6795..60e560d 100644 (file)
 #include <pulse/pulseaudio.h>
 #include <pulse/thread-mainloop.h>
 
+#if defined(__TIZEN__) && defined(PCM_DUMP_ENABLE)
+#include <stdio.h>
+#endif
+
 G_BEGIN_DECLS
 
 #define GST_TYPE_PULSESRC \
@@ -60,9 +64,7 @@ struct _GstPulseSrc
   pa_stream *stream;
   guint32 source_output_idx;
 
-  pa_format_info *format;
-  guint rate;
-  guint channels;
+  pa_sample_spec sample_spec;
 
   const void *read_buffer;
   size_t read_buffer_length;
@@ -84,8 +86,17 @@ struct _GstPulseSrc
   gboolean paused:1;
   gboolean in_read:1;
 
+#ifdef __TIZEN__
+  gchar *latency;
+#endif /* __TIZEN__ */
+
   GstStructure *properties;
   pa_proplist *proplist;
+
+#if defined(__TIZEN__) && defined(PCM_DUMP_ENABLE)
+  gint need_dump_output;
+  FILE *dump_fd_output;
+#endif
 };
 
 struct _GstPulseSrcClass