2 * Copyright (C) 2003-2006 David Schleef <ds@schleef.org>
3 * 2005-2006 Eric Anholt <eric@anholt.net>
4 * 2006-2007 Benjamin Otte <otte@gnome.org>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 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 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301 USA
22 #ifndef _SWFDEC_AUDIO_INTERNAL_H_
23 #define _SWFDEC_AUDIO_INTERNAL_H_
25 #include <libswfdec/swfdec.h>
26 #include <libswfdec/swfdec_audio.h>
27 #include <libswfdec/swfdec_bits.h>
28 #include <libswfdec/swfdec_types.h>
32 typedef guint SwfdecAudioFormat
;
33 #define SWFDEC_IS_AUDIO_FORMAT(format) ((format) <= 0xF)
39 SwfdecPlayer
* player
; /* the player that plays us */
40 gboolean added
; /* set to TRUE after the added signal has been emitted */
43 struct _SwfdecAudioClass
{
44 GObjectClass object_class
;
46 guint (* iterate
) (SwfdecAudio
* audio
,
48 void (* render
) (SwfdecAudio
* audio
,
54 void swfdec_audio_add (SwfdecAudio
* audio
,
55 SwfdecPlayer
* player
);
56 void swfdec_audio_remove (SwfdecAudio
* audio
);
58 guint
swfdec_audio_iterate (SwfdecAudio
* audio
,
61 SwfdecAudioFormat
swfdec_audio_format_parse (SwfdecBits
* bits
);
62 SwfdecAudioFormat
swfdec_audio_format_new (guint rate
,
65 guint
swfdec_audio_format_get_channels(SwfdecAudioFormat format
);
66 gboolean
swfdec_audio_format_is_16bit (SwfdecAudioFormat format
);
67 guint
swfdec_audio_format_get_rate (SwfdecAudioFormat format
);
68 guint swfdec_audio_format_get_granularity
69 (SwfdecAudioFormat format
);
70 const char * swfdec_audio_format_to_string (SwfdecAudioFormat format
);