search for: swfdecsoundenvelope

Displaying 5 results from an estimated 5 matches for "swfdecsoundenvelope".

2007 Oct 31
0
5 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_audio.c libswfdec/swfdec_sound.c libswfdec/swfdec_xml.c
...*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->n_envelopes); SWFDEC_LOG (" n_envelopes = %u", chunk->n_envelopes); - } else { - n_envelopes = 0; } - for (i = 0; i < n_envelo...
2007 Oct 29
0
2 commits - libswfdec/swfdec_sound.c libswfdec/swfdec_text_field_movie.c
...51,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,7 @@ swfdec_sound_parse_chunk (SwfdecSwfDecoder *s, SwfdecBits *b, int id) if (i > 0 && chunk->envelope[i].offset <= chunk->envelope[i-1].offset) { /* F...
2007 Oct 11
0
12 commits - configure.ac doc/Makefile.am libswfdec/swfdec_as_frame.c libswfdec/swfdec_audio.c libswfdec/swfdec_audio_event.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_shape_parser.c libswfdec/swfdec_sound.c test/sound
.../* first sample to not play anymore or 0 for playing all */ - guint loop_count; /* amount of times this sample still needs to be played back */ + guint n_loops; /* amount of times this sample still needs to be played back */ guint n_envelopes; /* amount of points in the envelope */ SwfdecSoundEnvelope * envelope; /* volume envelope or NULL if none */ /* dynamic data */ SwfdecBuffer * decoded; /* the decoded buffer we play back */ SwfdecAudioFormat decoded_format; /* format of the decoded buffer */ guint offset; /* current offset in 44.1kHz */ + guint loop; /* current loop...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...ned int n_samples) + guint offset, guint n_samples) { SwfdecBuffer *buffer; SwfdecAudioOut format; diff --git a/libswfdec/swfdec_sound.h b/libswfdec/swfdec_sound.h index ce837db..ea3e9af 100644 --- a/libswfdec/swfdec_sound.h +++ b/libswfdec/swfdec_sound.h @@ -41,7 +41,7 @@ typedef struct _SwfdecSoundEnvelope Swfd #define SWFDEC_SOUND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWFDEC_TYPE_SOUND, SwfdecSoundClass)) struct _SwfdecSoundEnvelope { - unsigned int offset; /* offset in frames */ + guint offset; /* offset in frames */ guint16 volume[2]; /* volume to use */ };...
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...ned int n_samples) + guint offset, guint n_samples) { SwfdecBuffer *buffer; SwfdecAudioOut format; diff --git a/libswfdec/swfdec_sound.h b/libswfdec/swfdec_sound.h index ce837db..ea3e9af 100644 --- a/libswfdec/swfdec_sound.h +++ b/libswfdec/swfdec_sound.h @@ -41,7 +41,7 @@ typedef struct _SwfdecSoundEnvelope Swfd #define SWFDEC_SOUND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SWFDEC_TYPE_SOUND, SwfdecSoundClass)) struct _SwfdecSoundEnvelope { - unsigned int offset; /* offset in frames */ + guint offset; /* offset in frames */ guint16 volume[2]; /* volume to use */ };...