2 * Copyright (C) 2003 Benjamin Otte <in7y118@public.uni-hamburg.de>
4 * sinesrc.h: Header file for sinesrc.c
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this library; if not, write to the Free
18 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
29 #endif /* __cplusplus */
32 #define TYPE_SINESRC \
34 #define SINESRC(obj) \
35 (G_TYPE_CHECK_INSTANCE_CAST((obj),TYPE_SINESRC,SineSrc))
36 #define SINESRC_CLASS(klass) \
37 (G_TYPE_CHECK_CLASS_CAST((klass),TYPE_SINESRC,SineSrcClass))
38 #define IS_SINESRC(obj) \
39 (G_TYPE_CHECK_INSTANCE_TYPE((obj),TYPE_SINESRC))
40 #define IS_SINESRC_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_TYPE((klass),TYPE_SINESRC))
43 typedef struct _SineSrc SineSrc;
44 typedef struct _SineSrcClass SineSrcClass;
46 typedef void (*PreGetFunc) (SineSrc *src);
59 /* audio parameters */
61 gint width; /* int + float */
63 gboolean sign; /* int */
64 gint endianness; /* int */
67 gint channels; /* interleaved */
71 /* freaky stuff for testing */
72 PreGetFunc pre_get_func;
75 struct _SineSrcClass {
76 GstElementClass parent_class;
79 GType sinesrc_get_type (void);
80 GstElement * sinesrc_new (void);
82 void sinesrc_set_pre_get_func (SineSrc *src, PreGetFunc func);
86 #endif /* __cplusplus */
89 #endif /* __GST_SINESRC_H__ */