Move the enum for the processing method to the header so that we can use the
type for the instance struct.
/* Filter signals and args */
enum
{
- /* FILL ME */
- LAST_SIGNAL
-};
-
-enum
-{
PROP_0,
PROP_PANORAMA,
PROP_METHOD
};
-enum
-{
- METHOD_PSYCHOACOUSTIC = 0,
- METHOD_SIMPLE,
- NUM_METHODS
-};
-
#define GST_TYPE_AUDIO_PANORAMA_METHOD (gst_audio_panorama_method_get_type ())
static GType
gst_audio_panorama_method_get_type (void)
}
format_index = GST_AUDIO_FORMAT_INFO_IS_FLOAT (finfo) ? 1 : 0;
-
method_index = filter->method;
- if (method_index >= NUM_METHODS || method_index < 0)
- method_index = METHOD_PSYCHOACOUSTIC;
filter->process =
panorama_process_functions[channel_index][format_index][method_index];
typedef void (*GstAudioPanoramaProcessFunc)(GstAudioPanorama*, guint8*, guint8*, guint);
+typedef enum
+{
+ METHOD_PSYCHOACOUSTIC = 0,
+ METHOD_SIMPLE
+} GstAudioPanoramaMethod;
+
struct _GstAudioPanorama {
GstBaseTransform element;
+ /* properties */
gfloat panorama;
+ GstAudioPanoramaMethod method;
/* < private > */
GstAudioPanoramaProcessFunc process;
-
GstAudioInfo info;
- gint method;
};
struct _GstAudioPanoramaClass {