mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
audiotestsrc: Use G_DECLARE_FINAL_TYPE
This commit is contained in:
parent
1b6a6cabf2
commit
f91659ba92
1 changed files with 3 additions and 20 deletions
|
@ -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__ */
|
||||
|
|
Loading…
Reference in a new issue