search for: swfdecplayback

Displaying 13 results from an estimated 13 matches for "swfdecplayback".

Did you mean: swfdec_playback
2007 Jul 16
0
configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_playback_oss.c
...swfdec audio playback by opening /dev/dsp per stream + * and playing out through that. + * + * Allowing multiple access to /dev/dsp is not required by the OSS API spec, + * but FreeBSD's sound system lets you, which is what this file was written + * for. + */ + +/*** DEFINITIONS ***/ + +struct _SwfdecPlayback { + SwfdecPlayer * player; + GList * streams; /* all Stream objects */ + GMainContext * context; /* context we work in */ +}; + +typedef struct { + SwfdecPlayback * sound; /* reference to sound object */ + SwfdecAudio * audio; /* the audio we play back */ + int dsp_fd; + int fra...
2007 Nov 08
0
configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec_playback_pa.c
...#include <string.h> + +#include "swfdec_playback.h" +#include "pulse/pulseaudio.h" +#include "pulse/glib-mainloop.h" + +/** @file Implements swfdec audio playback by dumping swfdec streams out + * using pulseaudio streams. + */ + +/*** DEFINITIONS ***/ + +struct _SwfdecPlayback { + SwfdecPlayer * player; + GList * streams; /* all Stream objects */ + GMainContext * context; /* glib context we work in */ + pa_glib_mainloop * pa_mainloop; /* PA to glib mainloop connection */ + pa_context * pa; /* PA context for sound rendering */ +}; + +typedef struct { + SwfdecPlay...
2007 Nov 22
0
2 commits - libswfdec-gtk/swfdec_playback_pa.c
...er not running and automatic server mode being disabled. diff --git a/libswfdec-gtk/swfdec_playback_pa.c b/libswfdec-gtk/swfdec_playback_pa.c index d47fcb4..825775b 100644 --- a/libswfdec-gtk/swfdec_playback_pa.c +++ b/libswfdec-gtk/swfdec_playback_pa.c @@ -163,6 +163,13 @@ swfdec_stream_open (SwfdecPlayback *sound, SwfdecAudio *audio) stream->audio = g_object_ref (audio); sound->streams = g_list_prepend (sound->streams, stream); + /* If we failed to initialize the context, don't try to create the stream. + * We still have to get put in the list, because swfdec_playback.c expect...
2007 Apr 03
0
11 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec-gtk/swfdec_source.c libswfdec/swfdec_cached.c libswfdec/swfdec_font.c libswfdec/swfdec_morphshape.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c
...terate_source_advance_cb), source); diff-tree b3030fd82079172d16451d6c265077cc21a60802 (from ea7b64b68489721b867fef1edf55c809de2e2b8a) Author: Benjamin Otte <otte@gnome.org> Date: Tue Apr 3 09:00:34 2007 +0200 Do not ref the player anymore Using a refcount was a good idea when SwfdecPlayback was seperate. Now it's used from the player itself, so it'll get into a refcount loop. diff --git a/libswfdec-gtk/swfdec_playback_alsa.c b/libswfdec-gtk/swfdec_playback_alsa.c index b6a2f1a..ee4da3e 100644 --- a/libswfdec-gtk/swfdec_playback_alsa.c +++ b/libswfdec-gtk/swfdec_playback_a...
2007 Mar 27
0
15 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/.gitignore libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h
...internal.h> +#include "libswfdec-gtk/swfdec_gtk_player.h" +#include "libswfdec-gtk/swfdec_playback.h" +#include "libswfdec-gtk/swfdec_source.h" + +struct _SwfdecGtkPlayer +{ + SwfdecPlayer player; + + GSource * source; /* source if playing, NULL otherwise */ + SwfdecPlayback * playback; /* audio playback object */ + gboolean audio_enabled; /* TRUE if audio should be played */ + double speed; /* desired playback speed */ +}; + +struct _SwfdecGtkPlayerClass +{ + SwfdecPlayerClass player_class; +}; + +enum { + PROP_0, + PROP_PLAYING, + PROP_AUDIO, + PROP_SPEE...
2007 Aug 03
0
libswfdec-gtk/swfdec_playback_alsa.c
...swfdec_playback_alsa.c b/libswfdec-gtk/swfdec_playback_alsa.c index f227781..0b7be3d 100644 --- a/libswfdec-gtk/swfdec_playback_alsa.c +++ b/libswfdec-gtk/swfdec_playback_alsa.c @@ -307,7 +307,6 @@ audio_removed (SwfdecPlayer *player, Swf return; } } - g_assert_not_reached (); } SwfdecPlayback *
2007 Dec 01
1
OpenBSD related patches
Hello, list ! Here is diff of changes, i had to make to get swfdec running on OpenBSD 4.2-current. Regards Valery. P.S. Please cc me, i am not subscribed to the list -------------- next part -------------- A non-text attachment was scrubbed... Name: swfdec.diff Type: application/octet-stream Size: 11628 bytes Desc: not available Url :
2008 Jun 15
1
14 commits - configure.ac swfdec/.gitignore swfdec-gtk/swfdec_gtk_loader.c swfdec-gtk/swfdec_playback_alsa.c swfdec/Makefile.am swfdec/swfdec_asnative.h swfdec/swfdec_as_string.c swfdec/swfdec_audio.c swfdec/swfdec_audio_load.c swfdec/swfdec_audio_load.h
...ec_playback_alsa.c @@ -259,6 +259,12 @@ swfdec_playback_stream_changed (SwfdecAudio *audio, Stream *stream) } static void +swfdec_playback_stream_new_data (SwfdecAudio *audio, Stream *stream) +{ + swfdec_playback_stream_install_handlers (stream); +} + +static void swfdec_playback_stream_open (SwfdecPlayback *sound, SwfdecAudio *audio) { Stream *stream; @@ -325,6 +331,8 @@ swfdec_playback_stream_open (SwfdecPlayback *sound, SwfdecAudio *audio) sound->streams = g_list_prepend (sound->streams, stream); g_signal_connect (stream->audio, "changed", G_CALLBACK (swfdec_pla...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...m_start (stream->pcm), "error starting",); - swfdec_stream_install_handlers (stream); + swfdec_playback_stream_install_handlers (stream); } break; case SND_PCM_STATE_OPEN: @@ -201,7 +201,7 @@ swfdec_stream_start (Stream *stream) } static void -swfdec_stream_open (SwfdecPlayback *sound, SwfdecAudio *audio) +swfdec_playback_stream_open (SwfdecPlayback *sound, SwfdecAudio *audio) { Stream *stream; snd_pcm_t *ret; @@ -259,7 +259,7 @@ swfdec_stream_open (SwfdecPlayback *sound, SwfdecAudio *audio) if (stream->n_sources > 0) stream->sources = g_new0 (GSou...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...terate_source_advance_cb), source); diff-tree b3030fd82079172d16451d6c265077cc21a60802 (from ea7b64b68489721b867fef1edf55c809de2e2b8a) Author: Benjamin Otte <otte@gnome.org> Date: Tue Apr 3 09:00:34 2007 +0200 Do not ref the player anymore Using a refcount was a good idea when SwfdecPlayback was seperate. Now it's used from the player itself, so it'll get into a refcount loop. diff --git a/libswfdec-gtk/swfdec_playback_alsa.c b/libswfdec-gtk/swfdec_playback_alsa.c index b6a2f1a..ee4da3e 100644 --- a/libswfdec-gtk/swfdec_playback_alsa.c +++ b/libswfdec-gtk/swfdec_playback_a...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...frastructure for a libswfdec-gtk s/SWF_(CFLAGS|LIBS)/SWFDEC_\1/ movie libswfdecui to libswfdec-gtk and make libswfdec-gtk an installed library prepare the gtk widget for exporting its API apparently I can't name functions correctly hook up libswfdec-gtk Use a SwfdecPlayback struct instead of gpointer Add API docs hack to convince gtk-doc to read two subdirs for docs add swfdec_iterate_source_set_speed Add SwfdecGtkPlayer update the docs for SwfdecGtkPlayer update to use SwfdecGtkPlayer enable audio playback by default ad...
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
...[stream->n_sources]; - unsigned int i, count; + guint i, count; if (stream->n_sources > 1) g_printerr ("attention: more than one fd!\n"); count = snd_pcm_poll_descriptors (stream->pcm, polls, stream->n_sources); @@ -198,7 +198,7 @@ swfdec_stream_open (SwfdecPlayback *soun Stream *stream; snd_pcm_t *ret; snd_pcm_hw_params_t *hw_params; - unsigned int rate; + guint rate; snd_pcm_uframes_t uframes; /* "default" uses dmix, and dmix ticks way slow, so this thingy here stutters */ diff --git a/libswfdec/swfdec_audio_event.h b/libswfdec/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
...[stream->n_sources]; - unsigned int i, count; + guint i, count; if (stream->n_sources > 1) g_printerr ("attention: more than one fd!\n"); count = snd_pcm_poll_descriptors (stream->pcm, polls, stream->n_sources); @@ -198,7 +198,7 @@ swfdec_stream_open (SwfdecPlayback *soun Stream *stream; snd_pcm_t *ret; snd_pcm_hw_params_t *hw_params; - unsigned int rate; + guint rate; snd_pcm_uframes_t uframes; /* "default" uses dmix, and dmix ticks way slow, so this thingy here stutters */ diff --git a/libswfdec/swfdec_audio_event.h b/libswfdec/s...