gst_plugins_base/gst-libs/gst/audio/mixerutils.h
changeset 0 0e761a78d257
equal deleted inserted replaced
-1:000000000000 0:0e761a78d257
       
     1 /* GStreamer
       
     2  * Copyright (C) 2005-2006 Tim-Philipp Müller <tim centricular net>
       
     3  *
       
     4  * This library is free software; you can redistribute it and/or
       
     5  * modify it under the terms of the GNU Library General Public
       
     6  * License as published by the Free Software Foundation; either
       
     7  * version 2 of the License, or (at your option) any later version.
       
     8  *
       
     9  * This library is distributed in the hope that it will be useful,
       
    10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    12  * Library General Public License for more details.
       
    13  *
       
    14  * You should have received a copy of the GNU Library General Public
       
    15  * License along with this library; if not, write to the
       
    16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
       
    17  * Boston, MA 02111-1307, USA.
       
    18  */
       
    19 
       
    20 #ifndef __GST_AUDIO_MIXERUTILS_H__
       
    21 #define __GST_AUDIO_MIXERUTILS_H__
       
    22 
       
    23 #include <gst/gst.h>
       
    24 #include <gst/interfaces/mixer.h>
       
    25 
       
    26 G_BEGIN_DECLS
       
    27 
       
    28 /**
       
    29  * GstAudioMixerFilterFunc:
       
    30  * @mixer: a #GstElement implementing the #GstMixer interface
       
    31  * @user_data: user data
       
    32  *
       
    33  * Function that will be called by gst_audio_default_registry_mixer_filter()
       
    34  * so the caller can decide which mixer elements should be kept and returned.
       
    35  * When the mixer element is passed to the callback function, it is opened
       
    36  * and in READY state. If you decide to keep the element, you need to set it
       
    37  * back to NULL state yourself (unless you want to keep it opened of course).
       
    38  *
       
    39  * Returns: TRUE if the element should be kept, FALSE otherwise.
       
    40  */
       
    41 typedef gboolean (*GstAudioMixerFilterFunc) (GstMixer * mixer, gpointer user_data);
       
    42 #ifdef __SYMBIAN32__
       
    43 IMPORT_C
       
    44 #endif
       
    45 
       
    46 
       
    47 
       
    48 GList * gst_audio_default_registry_mixer_filter (GstAudioMixerFilterFunc  filter_func,
       
    49                                                  gboolean                 first,
       
    50                                                  gpointer                 user_data);
       
    51 
       
    52 G_END_DECLS
       
    53 
       
    54 #endif /* __GST_AUDIO_MIXERUTILS_H__ */