search for: swfdec_audio_codec_init

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

2007 Apr 05
0
4 commits - libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_stream.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec.c libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec.h libswfdec/swfdec_codec_mad.c
..._flv.c b/libswfdec/swfdec_audio_flv.c index 6e8560a..feb6b57 100644 --- a/libswfdec/swfdec_audio_flv.c +++ b/libswfdec/swfdec_audio_flv.c @@ -100,7 +100,7 @@ next: flv->in = in; flv->codec = swfdec_codec_get_audio (flv->format); if (flv->codec) { - flv->decoder = swfdec_audio_codec_init (flv->codec, flv->width, flv->in); + flv->decoder = swfdec_audio_codec_init (flv->codec, flv->format, flv->width, flv->in); flv->out = swfdec_audio_codec_get_format (flv->codec, flv->decoder); } } else if (format != flv->format || diff --git a/libsw...
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
..., flv->decoder); + swfdec_audio_decoder_free (flv->decoder); flv->decoder = NULL; } flv->format = format; flv->width = width; flv->in = in; - flv->codec = swfdec_codec_get_audio (flv->format); - if (flv->codec) { - flv->decoder = swfdec_audio_codec_init (flv->codec, flv->format, flv->width, flv->in); - flv->out = swfdec_audio_codec_get_format (flv->codec, flv->decoder); - } + flv->decoder = swfdec_audio_decoder_new (flv->format, flv->width, flv->in); + if (flv->decoder == NULL) + return NULL;...
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
...d_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->sound->width, stream->sound->original_format); if (stream->decoder) - stream->format = swfdec_sound_get_decoder_format (stream->sound, stream->decoder); + stream->format = swfdec_audio_codec_get_format (stream->codec, stream->d...
2007 Apr 06
0
3 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_codec.c libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_codec_video.c
...ecBuffer * (* decode) (gpointer codec_data, - SwfdecBuffer * buffer); - void (* finish) (gpointer codec_data); -}; - const SwfdecAudioCodec * swfdec_codec_get_audio (SwfdecAudioFormat format); -const SwfdecVideoCodec * swfdec_codec_get_video (SwfdecVideoFormat format); #define swfdec_audio_codec_init(codec,type,width,format) (codec)->init (type, width, format) #define swfdec_audio_codec_get_format(codec, codec_data) (codec)->get_format (codec_data) #define swfdec_audio_codec_decode(codec, codec_data, buffer) (codec)->decode (codec_data, buffer) #define swfdec_audio_codec_finish(code...