search for: sound_head

Displaying 11 results from an estimated 11 matches for "sound_head".

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
...sprite->actions, TRUE); + sprite->actions = NULL; if (sprite->init_action) { swfdec_script_unref (sprite->init_action); sprite->init_action = NULL; @@ -118,62 +104,31 @@ swfdec_sprite_add_sound_chunk (SwfdecSpr SWFDEC_AUDIO_OUT_GRANULARITY (sprite->frames[frame].sound_head->original_format); } -static void -swfdec_sprite_remove_last_action (SwfdecSprite * sprite, guint frame_id) -{ - SwfdecSpriteFrame *frame; - - g_assert (frame_id < sprite->n_frames); - frame = &sprite->frames[frame_id]; - - g_assert (frame->actions != NULL); - g_assert...
2007 Jun 19
0
Branch 'as' - test/dump.c
...gt;n_frames); } else { - guint i, j; + guint i, j, tag; + SwfdecBuffer *buffer; SwfdecSound *sound = NULL; for (i = 0; i < s->n_frames; i++) { SwfdecSpriteFrame *frame = &s->frames[i]; - if (frame->actions == NULL) - continue; if (frame->sound_head != sound && frame->sound_block != NULL) { sound = frame->sound_head; @@ -105,40 +105,55 @@ dump_sprite (SwfdecSprite *s) SWFDEC_AUDIO_OUT_IS_STEREO (sound->original_format) ? "mono" : "stereo", sound->width ? 16 : 8); } - for...
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
...>parse_sprite->n_frames) { SwfdecSpriteFrame *old = &s->parse_sprite->frames[s->parse_sprite->parse_frame - 1]; SwfdecSpriteFrame *new = &s->parse_sprite->frames[s->parse_sprite->parse_frame]; - new->bg_color = old->bg_color; if (old->sound_head) new->sound_head = g_object_ref (old->sound_head); } @@ -240,11 +239,24 @@ tag_show_frame (SwfdecSwfDecoder * s) int tag_func_set_background_color (SwfdecSwfDecoder * s) { - SwfdecSpriteFrame *frame; + SwfdecPlayer *player = SWFDEC_DECODER (s)->player; + SwfdecColor color =...
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
...= 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 /* then do the streaming thing */ if (current->sound_head == NULL || - SWFDEC_MOVIE (movie)->stopped) { + !movie->playing) { if (movie->sound_stream) { swfdec_audio_remove (movie->sound_stream); g_object_unref (movie->sound_stream); @@ -525,8 +523,8 @@ swfdec_sprite_movie_iterate_end (SwfdecM } if (movie-&...
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
...er_pull (stream->decoder)) && + !stream->done) { if (stream->current_frame >= stream->sprite->n_frames) - break; + goto end; frame = &stream->sprite->frames[stream->current_frame]; stream->current_frame++; if (frame->sound_head != stream->sound) - break; + goto end; if (frame->sound_samples == 0) continue; - /* FIXME: with this method and mad not giving out full samples, we end up + /* FIXME: with this method and mad/gst not giving out full samples, we end up * putting silence to...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...-{ - if (!verbose) { - g_print (" %u frames\n", s->n_frames); - } else { - guint i, j, tag; - SwfdecBuffer *buffer; - SwfdecSound *sound = NULL; - - for (i = 0; i < s->n_frames; i++) { - SwfdecSpriteFrame *frame = &s->frames[i]; - if (frame->sound_head != sound && - frame->sound_block != NULL) { - sound = frame->sound_head; - for (j = i; j < s->n_frames; j++) { - SwfdecSpriteFrame *cur = &s->frames[i]; - if (cur->sound_head != sound) - break; - } - if (sound) - g_print (" %4u -%4u sound: %s %s\n&q...
2007 Nov 08
0
configure.ac libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h
...t a/libswfdec/swfdec_sound.c b/libswfdec/swfdec_sound.c index 06022bc..0d795e7 100644 --- a/libswfdec/swfdec_sound.c +++ b/libswfdec/swfdec_sound.c @@ -265,23 +265,25 @@ tag_func_sound_stream_head (SwfdecSwfDecoder * s, guint tag) s->parse_sprite->frames[s->parse_sprite->parse_frame].sound_head = sound; switch (sound->codec) { - case 0: + case SWFDEC_AUDIO_CODEC_UNDEFINED: if (swfdec_audio_format_is_16bit (sound->format)) { SWFDEC_WARNING ("undefined endianness for s16 sound"); /* just assume LE and hope it works (FIXME: want a switch for this?) */...
2007 Jan 16
0
9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_cache.c libswfdec/swfdec_cached.c libswfdec/swfdec_cached.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_image.c
..._finish_decoder (stream->sound, stream->decoder); + buffer = swfdec_audio_codec_finish (stream->codec, stream->decoder); stream->decoder = NULL; stream->done = TRUE; if (buffer) @@ -199,9 +199,12 @@ swfdec_audio_stream_new (SwfdecPlayer *p stream->sound = frame->sound_head; stream->playback_skip = frame->sound_skip; stream->current_frame = start_frame; - stream->decoder = swfdec_sound_init_decoder (stream->sound); + stream->codec = swfdec_codec_get_audio (stream->sound->format); + if (stream->codec) + stream->decoder = swfdec...
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
...t_frame, n_frames; g_return_val_if_fail (SWFDEC_IS_SPRITE (sprite), 0); diff --git a/libswfdec/swfdec_sprite.h b/libswfdec/swfdec_sprite.h index 779cd43..1812302 100644 --- a/libswfdec/swfdec_sprite.h +++ b/libswfdec/swfdec_sprite.h @@ -59,7 +59,7 @@ struct _SwfdecSpriteFrame SwfdecSound *sound_head; /* sound head for this frame */ int sound_skip; /* samples to skip - maybe even backwards */ SwfdecBuffer *sound_block; /* sound chunk to play here or NULL for none */ - unsigned int sound_samples; /* number of samples in this frame */ + guint sound_samples; /* number of samples in t...
2007 Jun 13
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_sprite.c
...e_content); - sprite->live_content = NULL; - } if (sprite->frames) { for (i = 0; i < sprite->n_frames; i++) { g_free (sprite->frames[i].label); @@ -121,66 +117,6 @@ swfdec_sprite_add_sound_chunk (SwfdecSpr SWFDEC_AUDIO_OUT_GRANULARITY (sprite->frames[frame].sound_head->original_format); } -/* find the last action in this depth if it exists */ -/* NB: we look in the current frame, too - so call this before adding actions - * that might modify the frame you're looking for */ -static SwfdecContent * -swfdec_content_find (SwfdecSprite *sprite, int depth) -...
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
...t_frame, n_frames; g_return_val_if_fail (SWFDEC_IS_SPRITE (sprite), 0); diff --git a/libswfdec/swfdec_sprite.h b/libswfdec/swfdec_sprite.h index 779cd43..1812302 100644 --- a/libswfdec/swfdec_sprite.h +++ b/libswfdec/swfdec_sprite.h @@ -59,7 +59,7 @@ struct _SwfdecSpriteFrame SwfdecSound *sound_head; /* sound head for this frame */ int sound_skip; /* samples to skip - maybe even backwards */ SwfdecBuffer *sound_block; /* sound chunk to play here or NULL for none */ - unsigned int sound_samples; /* number of samples in this frame */ + guint sound_samples; /* number of samples in t...