audiotestsrc: Use G_DECLARE_FINAL_TYPE

This commit is contained in:
Niels De Graef 2020-03-12 07:41:16 +01:00 committed by GStreamer Merge Bot
parent 1b6a6cabf2
commit f91659ba92

View file

@ -28,17 +28,9 @@
G_BEGIN_DECLS
#define GST_TYPE_AUDIO_TEST_SRC \
(gst_audio_test_src_get_type())
#define GST_AUDIO_TEST_SRC(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AUDIO_TEST_SRC,GstAudioTestSrc))
#define GST_AUDIO_TEST_SRC_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AUDIO_TEST_SRC,GstAudioTestSrcClass))
#define GST_IS_AUDIO_TEST_SRC(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AUDIO_TEST_SRC))
#define GST_IS_AUDIO_TEST_SRC_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AUDIO_TEST_SRC))
#define GST_TYPE_AUDIO_TEST_SRC (gst_audio_test_src_get_type())
G_DECLARE_FINAL_TYPE (GstAudioTestSrc, gst_audio_test_src, GST, AUDIO_TEST_SRC,
GstBaseSrc)
/**
* GstAudioTestSrcWave:
@ -90,9 +82,6 @@ typedef struct {
gdouble state; /* noise state */
} GstRedNoise;
typedef struct _GstAudioTestSrc GstAudioTestSrc;
typedef struct _GstAudioTestSrcClass GstAudioTestSrcClass;
typedef void (*ProcessFunc) (GstAudioTestSrc*, guint8 *);
/**
@ -146,12 +135,6 @@ struct _GstAudioTestSrc {
guint tick_counter;
};
struct _GstAudioTestSrcClass {
GstBaseSrcClass parent_class;
};
GType gst_audio_test_src_get_type (void);
G_END_DECLS
#endif /* __GST_AUDIO_TEST_SRC_H__ */