From 0a527f667ae62ac335f22d1d053179b20ff26e94 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 23 Aug 2007 19:12:23 +0000 Subject: Add SBC encoder and decoder skeletons for GStreamer --- audio/gstbluetooth.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'audio/gstbluetooth.c') diff --git a/audio/gstbluetooth.c b/audio/gstbluetooth.c index 392de194..58655573 100644 --- a/audio/gstbluetooth.c +++ b/audio/gstbluetooth.c @@ -25,21 +25,26 @@ #include #endif +#include "gstsbcenc.h" +#include "gstsbcdec.h" #include "gsta2dpsink.h" -GST_DEBUG_CATEGORY(bluetooth_debug); - static gboolean plugin_init(GstPlugin *plugin) { GST_INFO("Bluetooth plugin %s", VERSION); + if (gst_element_register(plugin, "sbcenc", + GST_RANK_NONE, GST_TYPE_SBC_ENC) == FALSE) + return FALSE; + + if (gst_element_register(plugin, "sbcdec", + GST_RANK_PRIMARY, GST_TYPE_SBC_DEC) == FALSE) + return FALSE; + if (gst_element_register(plugin, "a2dpsink", GST_RANK_PRIMARY, GST_TYPE_A2DP_SINK) == FALSE) return FALSE; - GST_DEBUG_CATEGORY_INIT(bluetooth_debug, "bluetooth", 0, - "Bluetooth plugin"); - return TRUE; } -- cgit