Displaying 2 results from an estimated 2 matches for "has_envelope".
2007 Oct 31
0
5 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_audio.c libswfdec/swfdec_sound.c libswfdec/swfdec_xml.c
...ps;
int has_out_point;
int has_in_point;
- guint i, j, n_envelopes;
- GArray *envelopes;
+ guint i, j;
SwfdecSound *sound;
SwfdecSoundChunk *chunk;
@@ -352,47 +351,29 @@ swfdec_sound_parse_chunk (SwfdecSwfDecoder *s, SwfdecBits *b, int id)
chunk->loop_count = 1;
}
if (has_envelope) {
- n_envelopes = swfdec_bits_get_u8 (b);
- if (n_envelopes > 0) {
- envelopes = g_array_sized_new (FALSE, FALSE,
- sizeof (SwfdecSoundEnvelope), n_envelopes);
- }
+ chunk->n_envelopes = swfdec_bits_get_u8 (b);
+ chunk->envelope = g_new0 (SwfdecSoundEnvelope, chunk-&...
2007 Oct 29
0
2 commits - libswfdec/swfdec_sound.c libswfdec/swfdec_text_field_movie.c
...nvelopes
diff --git a/libswfdec/swfdec_sound.c b/libswfdec/swfdec_sound.c
index 64e22a3..2f3dec0 100644
--- a/libswfdec/swfdec_sound.c
+++ b/libswfdec/swfdec_sound.c
@@ -351,6 +351,7 @@ swfdec_sound_parse_chunk (SwfdecSwfDecoder *s, SwfdecBits *b, int id)
chunk->loop_count = 1;
}
if (has_envelope) {
+ SWFDEC_FIXME ("support for sound envelopes not implemented");
chunk->n_envelopes = swfdec_bits_get_u8 (b);
chunk->envelope = g_new (SwfdecSoundEnvelope, chunk->n_envelopes);
SWFDEC_LOG (" n_envelopes = %u", chunk->n_envelopes);
@@ -366,7 +367,...