search for: playback_skip

Displaying 4 results from an estimated 4 matches for "playback_skip".

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
..._buffer_unref (buffer); } g_queue_foreach (flv->playback_queue, (GFunc) swfdec_buffer_unref, NULL); g_queue_free (flv->playback_queue); @@ -69,15 +67,13 @@ swfdec_audio_flv_decode_one (SwfdecAudio (guint) SWFDEC_TICKS_TO_MSECS (flv->timestamp), flv->next_timestamp, flv->playback_skip); } -next: - if (flv->out && flv->next_timestamp == 0) { - if (flv->decoder == NULL) + if (flv->decoder) + buffer = swfdec_audio_decoder_pull (flv->decoder); + else + buffer = NULL; + while (buffer == NULL) { + if (flv->decoder && flv->next_ti...
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
...dio_flv.h +++ b/libswfdec/swfdec_audio_flv.h @@ -48,8 +48,8 @@ struct _SwfdecAudioFlv gpointer decoder; /* decoder used for playback */ SwfdecTick timestamp; /* current playback timestamp */ - unsigned int next_timestamp; /* next timestamp in FLV file we request from */ - unsigned int playback_skip; /* number of samples to skip at start of queue */ + guint next_timestamp; /* next timestamp in FLV file we request from */ + guint playback_skip; /* number of samples to skip at start of queue */ GQueue * playback_queue; /* all the samples we've decoded so far */ }; diff --git a/lib...
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
...dio_flv.h +++ b/libswfdec/swfdec_audio_flv.h @@ -48,8 +48,8 @@ struct _SwfdecAudioFlv gpointer decoder; /* decoder used for playback */ SwfdecTick timestamp; /* current playback timestamp */ - unsigned int next_timestamp; /* next timestamp in FLV file we request from */ - unsigned int playback_skip; /* number of samples to skip at start of queue */ + guint next_timestamp; /* next timestamp in FLV file we request from */ + guint playback_skip; /* number of samples to skip at start of queue */ GQueue * playback_queue; /* all the samples we've decoded so far */ }; diff --git a/lib...
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
...t;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_audio_codec_init (stream-&gt...