search for: n_sourc

Displaying 7 results from an estimated 7 matches for "n_sourc".

Did you mean: p_source
2007 Jan 29
0
3 commits - autogen.sh configure.ac player/.gitignore player/Makefile.am player/swfdec_playback_alsa.c player/swfdec_playback.c player/swfdec_playback_none.c
...nContext * context; /* context we work in */ -} Sound; - -typedef struct { - Sound * sound; /* reference to sound object */ - SwfdecAudio * audio; /* the audio we play back */ - snd_pcm_t * pcm; /* the pcm we play back to */ - GSource ** sources; /* sources for writing data */ - guint n_sources; /* number of sources */ - guint offset; /* offset into sound */ -} Stream; - -#define ALSA_TRY(func,msg) G_STMT_START{ \ - int err = func; \ - if (err < 0) \ - g_printerr (msg ": %s\n", snd_strerror (err)); \ -}G_STMT_END - -#define ALSA_ERROR(func,msg,retval) G_STMT_START...
2007 Jan 31
0
Branch 'interpreter' - 20 commits - autogen.sh configure.ac libswfdec/js libswfdec/swfdec_debug.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_script.c
...nContext * context; /* context we work in */ -} Sound; - -typedef struct { - Sound * sound; /* reference to sound object */ - SwfdecAudio * audio; /* the audio we play back */ - snd_pcm_t * pcm; /* the pcm we play back to */ - GSource ** sources; /* sources for writing data */ - guint n_sources; /* number of sources */ - guint offset; /* offset into sound */ -} Stream; - -#define ALSA_TRY(func,msg) G_STMT_START{ \ - int err = func; \ - if (err < 0) \ - g_printerr (msg ": %s\n", snd_strerror (err)); \ -}G_STMT_END - -#define ALSA_ERROR(func,msg,retval) G_STMT_START...
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
...nContext * context; /* context we work in */ +} Sound; + +typedef struct { + Sound * sound; /* reference to sound object */ + SwfdecAudio * audio; /* the audio we play back */ + snd_pcm_t * pcm; /* the pcm we play back to */ + GSource ** sources; /* sources for writing data */ + guint n_sources; /* number of sources */ + guint offset; /* offset into sound */ +} Stream; + +#define ALSA_TRY(func,msg) G_STMT_START{ \ + int err = func; \ + if (err < 0) \ + g_printerr (msg ": %s\n", snd_strerror (err)); \ +}G_STMT_END + +#define ALSA_ERROR(func,msg,retval) G_STMT_START...
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
...alsa.c index 8160f1c..b6a2f1a 100644 --- a/libswfdec-gtk/swfdec_playback_alsa.c +++ b/libswfdec-gtk/swfdec_playback_alsa.c @@ -120,7 +120,7 @@ try_write (Stream *stream) static void swfdec_stream_remove_handlers (Stream *stream) { - unsigned int i; + guint i; for (i = 0; i < stream->n_sources; i++) { if (stream->sources[i]) { @@ -152,7 +152,7 @@ swfdec_stream_install_handlers (Stream * { if (stream->n_sources > 0) { struct pollfd polls[stream->n_sources]; - unsigned int i, count; + guint i, count; if (stream->n_sources > 1) g_printerr...
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
...alsa.c index 8160f1c..b6a2f1a 100644 --- a/libswfdec-gtk/swfdec_playback_alsa.c +++ b/libswfdec-gtk/swfdec_playback_alsa.c @@ -120,7 +120,7 @@ try_write (Stream *stream) static void swfdec_stream_remove_handlers (Stream *stream) { - unsigned int i; + guint i; for (i = 0; i < stream->n_sources; i++) { if (stream->sources[i]) { @@ -152,7 +152,7 @@ swfdec_stream_install_handlers (Stream * { if (stream->n_sources > 0) { struct pollfd polls[stream->n_sources]; - unsigned int i, count; + guint i, count; if (stream->n_sources > 1) g_printerr...
2007 Jul 18
0
12 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_playback_alsa.c libswfdec/jpeg libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c
...stream->offset, avail); //g_print ("rendering %u %u\n", stream->offset, (guint) avail); return avail; @@ -150,6 +150,8 @@ handle_stream (GIOChannel *source, GIOCo static void swfdec_stream_install_handlers (Stream *stream) { + GIOChannel *channel; + if (stream->n_sources > 0) { struct pollfd polls[stream->n_sources]; guint i, count; @@ -159,7 +161,7 @@ swfdec_stream_install_handlers (Stream * for (i = 0; i < count; i++) { if (stream->sources[i] != NULL) continue; - GIOChannel *channel = g_io_channel_unix_new (polls[i].fd);...
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) } 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 (GSource *, stream->n_sources); sound->streams = g_list_prepend (sound->streams, stream); - swfdec_stream_start (stream); + swfdec_playback_stream_start (stream); return; fail: @@ -267,10 +267,10 @@ fail: } static void -swfdec_strea...