From fcbcc7bfdfe61d57f38bd44cbc7a2edcea23e7a8 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 18 Oct 2007 21:45:14 +0000 Subject: Add gstsbcutil.c and gstsbcutil.h. --- audio/gstsbcutil.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 audio/gstsbcutil.h (limited to 'audio/gstsbcutil.h') diff --git a/audio/gstsbcutil.h b/audio/gstsbcutil.h new file mode 100644 index 00000000..84161d85 --- /dev/null +++ b/audio/gstsbcutil.h @@ -0,0 +1,47 @@ +/* + * + * BlueZ - Bluetooth protocol stack for Linux + * + * Copyright (C) 2004-2007 Marcel Holtmann + * + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + + +/* common functions for gstreamer sbc related plugins */ + +#include + +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); + +const gchar* gst_sbc_get_allocation_from_list(const GValue *value); +gint gst_sbc_get_allocation_mode_int(const gchar* allocation); +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); -- cgit