summaryrefslogtreecommitdiffstats
path: root/audio/gstsbcutil.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-11-01 19:45:00 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-11-01 19:45:00 +0000
commit96d6078ada20a76f885ea04893aac5f0ca5fe48d (patch)
tree5a555aaae3228f5c5faf2497b71227557aecc650 /audio/gstsbcutil.h
parenta4bc7122fb5c7e4545cf8055cf71d1e88515998f (diff)
Fix sbc negotiation and improves buffer handling by using GstAdapter.
Diffstat (limited to 'audio/gstsbcutil.h')
-rw-r--r--audio/gstsbcutil.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/audio/gstsbcutil.h b/audio/gstsbcutil.h
index 98f202f0..0c91fe82 100644
--- a/audio/gstsbcutil.h
+++ b/audio/gstsbcutil.h
@@ -22,18 +22,20 @@
*/
#include <gst/gst.h>
+#include "sbc.h"
+
+struct ipc_data_cfg; /* FIXME can't include ipc.h */
+struct ipc_codec_sbc;
gint gst_sbc_select_rate_from_list(const GValue *value);
-gint gst_sbc_select_rate_from_range(const GValue *value);
-gint gst_sbc_select_channels_from_list(const GValue *value);
gint gst_sbc_select_channels_from_range(const GValue *value);
gint gst_sbc_select_blocks_from_list(const GValue *value);
-gint gst_sbc_select_blocks_from_range(const GValue *value);
gint gst_sbc_select_subbands_from_list(const GValue *value);
-gint gst_sbc_select_subbands_from_range(const GValue *value);
+
+gint gst_sbc_select_bitpool_from_range(const GValue *value);
gint gst_sbc_select_bitpool_from_range(const GValue *value);
@@ -44,3 +46,7 @@ const gchar *gst_sbc_get_allocation_string(int alloc);
const gchar *gst_sbc_get_mode_from_list(const GValue *value);
gint gst_sbc_get_mode_int(const gchar *mode);
const gchar *gst_sbc_get_mode_string(int joint);
+
+GstCaps* gst_sbc_caps_from_sbc(struct ipc_data_cfg *cfg, struct ipc_codec_sbc *sbc,
+ gint channels);
+