Displaying 6 results from an estimated 6 matches for "sound_skip".
Did you mean:
found_skip
2008 Jan 09
0
libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_sound.c libswfdec/swfdec_sprite.c libswfdec/swfdec_swf_decoder.c
...ffer_unref (chunk);
return;
}
- SWFDEC_LOG ("adding %u samples in %u bytes to frame %u", n_samples,
+ SWFDEC_LOG ("adding %u samples in %"G_GSIZE_FORMAT" bytes to frame %u", n_samples,
chunk ? chunk->length : 0, frame);
sprite->frames[frame].sound_skip = skip;
sprite->frames[frame].sound_block = chunk;
diff --git a/libswfdec/swfdec_swf_decoder.c b/libswfdec/swfdec_swf_decoder.c
index 28223f0..5f3b2e0 100644
--- a/libswfdec/swfdec_swf_decoder.c
+++ b/libswfdec/swfdec_swf_decoder.c
@@ -134,7 +134,7 @@ swfdec_swf_decoder_deflate (SwfdecSwfDeco...
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
...ata, stream->format);
+ ret += swfdec_sound_buffer_get_n_samples (walk->data, format);
}
return ret - stream->playback_skip;
}
@@ -199,12 +201,8 @@ swfdec_audio_stream_new (SwfdecPlayer *p
stream->sound = frame->sound_head;
stream->playback_skip = frame->sound_skip;
stream->current_frame = start_frame;
- stream->codec = swfdec_codec_get_audio (stream->sound->format);
- if (stream->codec)
- stream->decoder = swfdec_audio_codec_init (stream->codec,
- stream->sound->format, stream->sound->width, stream->sound->orig...
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
...the data tag (see swfdec_tag.h) */
+ SwfdecBuffer * buffer; /* the buffer for this data (can be NULL) */
};
#define SWFDEC_TYPE_SPRITE (swfdec_sprite_get_type())
@@ -59,11 +57,8 @@ 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 */
- guint sound_samples; /* number of samples in this frame */
+ guint sound_samples; /* number of samples in this frame */
GSList *sound; /* list of SwfdecSoundChu...
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
..._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 this frame */
GSList *sound; /* list of SwfdecSo...
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
...r);
+ 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->codec,
+ stream->s...
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
..._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 this frame */
GSList *sound; /* list of SwfdecSo...