1 /* GStreamer AIFF parser
2 * Copyright (C) <2008> Pioneers of the Inevitable <songbird@songbirdnest.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
21 #ifndef __GST_AIFF_PARSE_H__
22 #define __GST_AIFF_PARSE_H__
26 #include <gst/base/gstadapter.h>
30 #define GST_TYPE_AIFF_PARSE \
31 (gst_aiff_parse_get_type())
32 #define GST_AIFF_PARSE(obj) \
33 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AIFF_PARSE,GstAiffParse))
34 #define GST_AIFF_PARSE_CLASS(klass) \
35 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AIFF_PARSE,GstAiffParseClass))
36 #define GST_IS_AIFF_PARSE(obj) \
37 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AIFF_PARSE))
38 #define GST_IS_AIFF_PARSE_CLASS(klass) \
39 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AIFF_PARSE))
47 typedef struct _GstAiffParse GstAiffParse;
48 typedef struct _GstAiffParseClass GstAiffParseClass;
53 * Opaque data structure.
55 struct _GstAiffParse {
62 GstEvent *close_segment;
63 GstEvent *start_segment;
65 /* AIFF decoding state */
66 GstAiffParseState state;
68 /* format of audio, see defines below */
73 /* useful audio data */
79 gboolean floating_point;
81 /* real bytes per second used or 0 when no bitrate is known */
84 guint bytes_per_sample;
90 guint32 ssnd_blocksize;
92 /* position in data part */
96 /* offset/length of data part */
99 /* duration in time */
103 GstEvent *seek_event;
110 /* configured segment, start/stop expressed in time */
112 gboolean segment_running;
114 /* discont after seek */
121 struct _GstAiffParseClass {
122 GstElementClass parent_class;
125 GType gst_aiff_parse_get_type(void);
129 #endif /* __GST_AIFF_PARSE_H__ */