Displaying 9 results from an estimated 9 matches for "start_frame".
2007 Aug 15
0
Branch 'vivi' - 13 commits - doc/swfdec-sections.txt libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_types.h vivified/core vivified/ui
...t *obj = SWFDEC_AS_OBJECT (breakpoint);
+ SwfdecAsValue retval;
+
+ swfdec_as_object_call (obj, swfdec_as_context_get_string (obj->context, "onCommand"), 0, NULL, &retval);
+ return swfdec_as_value_to_boolean (obj->context, &retval);
+}
+
+static gboolean
+vivi_breakpoint_start_frame (ViviDebugger *debugger, SwfdecAsFrame *frame, ViviBreakpoint *breakpoint)
+{
+ SwfdecAsObject *obj = SWFDEC_AS_OBJECT (breakpoint);
SwfdecAsValue val;
+ SwfdecAsValue retval;
+
+ SWFDEC_AS_VALUE_SET_OBJECT (&val, vivi_wrap_object (VIVI_APPLICATION (obj->context), SWFDEC_AS_OBJECT (fra...
2004 Aug 06
3
Chopping off the wideband?
On Tue, Feb 18, 2003 at 06:09:43PM -0500, Jean-Marc Valin wrote:
> Le mar 18/02/2003 ? 17:38, John Hayes a ?crit :
> > If I encode something in ultra-wideband, can I decode it in wideband by
> > chopping off bytes in every frame?
>
> All you have to do is use the --force-wb switch with speexdec. It will
> decode as if the file were wideband, ignoring the ultra-wideband
2004 Aug 06
4
Chopping off the wideband?
...I never expected it would work joining different
bitrate/encoding streams, but just then I tested joining an 8000Hz
narrowband stream with a 16000 Hz wideband, and the output sounds
pretty sane. The interface is:
peexcat --title "new title" --author "new author" \
file1.spx start_frame end_frame file2.spx start_frame end_frame ...
Ideally, you should be able to specify the time as
hours:mins:seconds.splitseconds rather than frame numbers (by bash
you can just do $(((min*60+sec)*50)) but it's tacky).
I discovered the magic number 50 somewhere as being the number of
speex fra...
2007 Aug 23
0
23 commits - doc/.gitignore doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_keys.c libswfdec-gtk/swfdec_gtk_keys.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec/Makefile.am
...ut to be collected by the garbage
@@ -55,9 +55,9 @@ G_DEFINE_TYPE (SwfdecAsDebugger, swfdec_
* @step: This function is called everytime just before a bytecode is executed
* by the script engine. So it's very powerful, but can also slow down
* the script engine a lot.
- * @start_frame: Called after a new #SwfdecAsFrame has been initialized and
+ * @enter_frame: Called after a new #SwfdecAsFrame has been initialized and
* pushed to the top of the execution stack.
- * @finish_frame: Called just after a #SwfdecAsFrame has been removed from the
+ * @leave_frame: Ca...
2007 Aug 17
0
Branch 'vivi' - 13 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_script_function.c test/trace vivified/core vivified/ui
...ruct {
const char * event;
const char * signal;
@@ -71,7 +86,8 @@ static const struct {
{ NULL, NULL, NULL }, /* invalid */
{ "onCommand", "step", G_CALLBACK (vivi_breakpoint_step) },
{ "onStartFrame", "start-frame", G_CALLBACK (vivi_breakpoint_start_frame) },
- { "onExitFrame", "finish-frame", G_CALLBACK (vivi_breakpoint_finish_frame) }
+ { "onExitFrame", "finish-frame", G_CALLBACK (vivi_breakpoint_finish_frame) },
+ { "onSetVariable", "set-variable", G_CALLBACK (vivi_breakpoint_set_vari...
2007 Aug 21
0
Branch 'vivi' - 15 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_types.h vivified/core vivified/ui
...funcs
diff --git a/vivified/core/vivi_debugger.c b/vivified/core/vivi_debugger.c
index a5ae2eb..68a7b89 100644
--- a/vivified/core/vivi_debugger.c
+++ b/vivified/core/vivi_debugger.c
@@ -28,6 +28,8 @@
#include "libswfdec/swfdec_player_internal.h"
enum {
+ ADD,
+ REMOVE,
STEP,
START_FRAME,
FINISH_FRAME,
@@ -87,6 +89,30 @@ vivi_debugger_break (ViviDebugger *debug
}
static void
+vivi_debugger_add (SwfdecAsDebugger *debugger, SwfdecAsContext *context,
+ SwfdecAsObject *object)
+{
+ gboolean retval = FALSE;
+
+ g_signal_emit (debugger, signals[ADD], 0, object, &retval);...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...funcs
diff --git a/vivified/core/vivi_debugger.c b/vivified/core/vivi_debugger.c
index a5ae2eb..68a7b89 100644
--- a/vivified/core/vivi_debugger.c
+++ b/vivified/core/vivi_debugger.c
@@ -28,6 +28,8 @@
#include "libswfdec/swfdec_player_internal.h"
enum {
+ ADD,
+ REMOVE,
STEP,
START_FRAME,
FINISH_FRAME,
@@ -87,6 +89,30 @@ vivi_debugger_break (ViviDebugger *debug
}
static void
+vivi_debugger_add (SwfdecAsDebugger *debugger, SwfdecAsContext *context,
+ SwfdecAsObject *object)
+{
+ gboolean retval = FALSE;
+
+ g_signal_emit (debugger, signals[ADD], 0, object, &retval);...
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
...dec_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->original_format);
- if (stream->decoder)
-...
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
...(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->sound->width, stream->sound->origin...