search for: sound_frame

Displaying 9 results from an estimated 9 matches for "sound_frame".

2007 Jun 27
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie_as.c
...= NULL) return TRUE; - current = &movie->sprite->frames[mov->frame]; + g_assert (movie->frame <= movie->n_frames); + current = &movie->sprite->frames[movie->frame - 1]; /* first start all event sounds */ /* FIXME: is this correct? */ - if (movie->sound_frame != mov->frame) { + if (movie->sound_frame != movie->frame) { for (walk = current->sound; walk; walk = walk->next) { SwfdecAudio *audio = swfdec_audio_event_new (player, walk->data); if (audio) @@ -515,7 +513,7 @@ swfdec_sprite_movie_iterate_end (SwfdecM /*...
2007 Jun 18
0
Branch 'as' - 8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_sprite_movie.h libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_swf_decoder.h
...e_iterate_end (SwfdecM if (movie->sprite == NULL) return TRUE; - current = &movie->sprite->frames[movie->current_frame]; + current = &movie->sprite->frames[mov->frame]; /* first start all event sounds */ /* FIXME: is this correct? */ - if (movie->sound_frame != movie->current_frame) { + if (movie->sound_frame != mov->frame) { for (walk = current->sound; walk; walk = walk->next) { SwfdecAudio *audio = swfdec_audio_event_new (player, walk->data); if (audio) @@ -290,8 +513,8 @@ swfdec_sprite_movie_iterate_end (SwfdecM...
2007 Sep 05
0
libswfdec/swfdec_sprite_movie.c
...a/libswfdec/swfdec_sprite_movie.c +++ b/libswfdec/swfdec_sprite_movie.c @@ -618,7 +618,7 @@ new_decoder: if (current->sound_block) { movie->sound_stream = swfdec_audio_stream_new (player, - movie->sprite, movie->frame); + movie->sprite, movie->frame - 1); movie->sound_frame = movie->frame; } return TRUE;
2007 Feb 17
0
2 commits - doc/swfdec-sections.txt libswfdec/swfdec_color.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...swfdec_movie_invalidate (mov); - } movie->current_frame = goto_frame; SWFDEC_DEBUG ("performing goto %u -> %u for character %u", start, goto_frame, SWFDEC_CHARACTER (movie->sprite)->id); @@ -355,17 +350,3 @@ swfdec_sprite_movie_init (SwfdecSpriteMo movie->sound_frame = (guint) -1; } -gboolean -swfdec_sprite_movie_paint_background (SwfdecSpriteMovie *movie, cairo_t *cr) -{ - SwfdecSpriteFrame *frame; - - if (movie->current_frame >= SWFDEC_MOVIE (movie)->n_frames) - return FALSE; - - frame = &movie->sprite->frames[movie->current_f...
2007 Apr 08
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_buffer.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec_audio.c
...295 100644 --- a/libswfdec/swfdec_sprite_movie.c +++ b/libswfdec/swfdec_sprite_movie.c @@ -293,9 +293,11 @@ new_decoder: g_object_unref (movie->sound_stream); } - movie->sound_stream = swfdec_audio_stream_new (player, - movie->sprite, movie->current_frame); - movie->sound_frame = movie->current_frame; + if (current->sound_block) { + movie->sound_stream = swfdec_audio_stream_new (player, + movie->sprite, movie->current_frame); + movie->sound_frame = movie->current_frame; + } return TRUE; } diff-tree e869d0ff88487c7f8998b190b849d7cb174fca...
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
...rame that is currently displayed (NB: indexed from 0) */ + guint current_frame; /* frame that is currently displayed (NB: indexed from 0) */ /* color information */ SwfdecColor bg_color; /* background color (only used on main sprite) */ /* audio stream handling */ - unsigned int sound_frame; /* current sound frame */ + guint sound_frame; /* current sound frame */ SwfdecAudio * sound_stream; /* stream that currently plays */ }; diff --git a/libswfdec/swfdec_swf_decoder.c b/libswfdec/swfdec_swf_decoder.c index 3954b36..97f6965 100644 --- a/libswfdec/swfdec_swf_decoder.c +++...
2007 Feb 06
0
Branch 'interpreter' - 15 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_image.c libswfdec/swfdec_sprite_movie.c
...movie->mouse_button = button; diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c index f303f33..2ca5877 100644 --- a/libswfdec/swfdec_sprite_movie.c +++ b/libswfdec/swfdec_sprite_movie.c @@ -264,7 +264,8 @@ swfdec_sprite_movie_iterate_end (SwfdecM if (movie->sound_frame != movie->current_frame) { for (walk = current->sound; walk; walk = walk->next) { SwfdecAudio *audio = swfdec_audio_event_new (player, walk->data); - g_object_unref (audio); + if (audio) + g_object_unref (audio); } } diff-tree af37862080c916e0792c5db1d3e2...
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
...rame that is currently displayed (NB: indexed from 0) */ + guint current_frame; /* frame that is currently displayed (NB: indexed from 0) */ /* color information */ SwfdecColor bg_color; /* background color (only used on main sprite) */ /* audio stream handling */ - unsigned int sound_frame; /* current sound frame */ + guint sound_frame; /* current sound frame */ SwfdecAudio * sound_stream; /* stream that currently plays */ }; diff --git a/libswfdec/swfdec_swf_decoder.c b/libswfdec/swfdec_swf_decoder.c index 3954b36..97f6965 100644 --- a/libswfdec/swfdec_swf_decoder.c +++...
2007 Feb 06
0
21 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c
...movie->mouse_button = button; diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c index f303f33..2ca5877 100644 --- a/libswfdec/swfdec_sprite_movie.c +++ b/libswfdec/swfdec_sprite_movie.c @@ -264,7 +264,8 @@ swfdec_sprite_movie_iterate_end (SwfdecM if (movie->sound_frame != movie->current_frame) { for (walk = current->sound; walk; walk = walk->next) { SwfdecAudio *audio = swfdec_audio_event_new (player, walk->data); - g_object_unref (audio); + if (audio) + g_object_unref (audio); } } diff-tree af37862080c916e0792c5db1d3e2...