gstlfocontrolsource.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /* GStreamer
  2. *
  3. * Copyright (C) 2007 Sebastian Dröge <[email protected]>
  4. *
  5. * gstlfocontrolsource.h: Control source that provides some periodic waveforms
  6. * as control values.
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Library General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2 of the License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Library General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Library General Public
  19. * License along with this library; if not, write to the
  20. * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
  21. * Boston, MA 02110-1301, USA.
  22. */
  23. #ifndef __GST_LFO_CONTROL_SOURCE_H__
  24. #define __GST_LFO_CONTROL_SOURCE_H__
  25. #include <glib-object.h>
  26. #include <gst/gst.h>
  27. G_BEGIN_DECLS
  28. #define GST_TYPE_LFO_CONTROL_SOURCE \
  29. (gst_lfo_control_source_get_type ())
  30. #define GST_LFO_CONTROL_SOURCE(obj) \
  31. (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_LFO_CONTROL_SOURCE, GstLFOControlSource))
  32. #define GST_LFO_CONTROL_SOURCE_CLASS(vtable) \
  33. (G_TYPE_CHECK_CLASS_CAST ((vtable), GST_TYPE_LFO_CONTROL_SOURCE, GstLFOControlSourceClass))
  34. #define GST_IS_LFO_CONTROL_SOURCE(obj) \
  35. (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_LFO_CONTROL_SOURCE))
  36. #define GST_IS_LFO_CONTROL_SOURCE_CLASS(vtable) \
  37. (G_TYPE_CHECK_CLASS_TYPE ((vtable), GST_TYPE_LFO_CONTROL_SOURCE))
  38. #define GST_LFO_CONTROL_SOURCE_GET_CLASS(inst) \
  39. (G_TYPE_INSTANCE_GET_CLASS ((inst), GST_TYPE_LFO_CONTROL_SOURCE, GstLFOControlSourceClass))
  40. #define GST_TYPE_LFO_WAVEFORM (gst_lfo_waveform_get_type ())
  41. typedef struct _GstLFOControlSource GstLFOControlSource;
  42. typedef struct _GstLFOControlSourceClass GstLFOControlSourceClass;
  43. typedef struct _GstLFOControlSourcePrivate GstLFOControlSourcePrivate;
  44. /**
  45. * GstLFOWaveform:
  46. * @GST_LFO_WAVEFORM_SINE: sine waveform
  47. * @GST_LFO_WAVEFORM_SQUARE: square waveform
  48. * @GST_LFO_WAVEFORM_SAW: saw waveform
  49. * @GST_LFO_WAVEFORM_REVERSE_SAW: reverse saw waveform
  50. * @GST_LFO_WAVEFORM_TRIANGLE: triangle waveform
  51. *
  52. * The various waveform modes available.
  53. */
  54. typedef enum
  55. {
  56. GST_LFO_WAVEFORM_SINE,
  57. GST_LFO_WAVEFORM_SQUARE,
  58. GST_LFO_WAVEFORM_SAW,
  59. GST_LFO_WAVEFORM_REVERSE_SAW,
  60. GST_LFO_WAVEFORM_TRIANGLE
  61. } GstLFOWaveform;
  62. /**
  63. * GstLFOControlSource:
  64. *
  65. * The instance structure of #GstControlSource.
  66. */
  67. struct _GstLFOControlSource {
  68. GstControlSource parent;
  69. /* <private> */
  70. GstLFOControlSourcePrivate *priv;
  71. GMutex lock;
  72. gpointer _gst_reserved[GST_PADDING];
  73. };
  74. struct _GstLFOControlSourceClass {
  75. GstControlSourceClass parent_class;
  76. /*< private >*/
  77. gpointer _gst_reserved[GST_PADDING];
  78. };
  79. GType gst_lfo_control_source_get_type (void);
  80. GType gst_lfo_waveform_get_type (void);
  81. /* Functions */
  82. GstControlSource *gst_lfo_control_source_new (void);
  83. G_END_DECLS
  84. #endif /* __GST_LFO_CONTROL_SOURCE_H__ */