Displaying 15 results from an estimated 15 matches for "is_play".
Did you mean:
isplay
2004 Sep 10
4
xmms-plugin problems
...olution is in calling
this with only 512samples. Against plugin.c
301,305c301,312
< flac_ip.add_vis_pcm(flac_ip.output->written_time(), file_info_.sample_format, file_info_.channels, bytes, reservoir_);
< while(flac_ip.output->buffer_free() < (int)bytes && file_info_.is_playing && file_info_.seek_to_in_sec == -1)
< xmms_usleep(10000);
< if(file_info_.is_playing && file_info_.seek_to_in_sec == -1)
< flac_ip.output->write_audio(reservoir_, bytes);
---
> unsigned written_bytes = 0, bytes_ = 512 * ((file_info_.bits_per_sampl...
2012 May 27
1
Thread Problem.
...d;
}
}
}
-To explain what each variable is, the first variable in that function is
strm. It's a StreamInfo structure, which looks like this:
struct StreamInfo
{
OggVorbis_File ovf;
RawOggData *raw_ogg;
int pos;
u32 bufPage;
bool is_playing;
};
-At the moment strm is just a global variable. I've tried a few other
things with this such as having ReadStrmData take a StreamInfo pointer.
This has been recommended since the global variable is also referenced in
the main thread at points when the first song would load or the same wa...
2004 Sep 10
2
getting framesize in client
...file_info_.seek_to_in_sec = -1;
file_info_.play_thread_open = true;
@@ -304,6 +306,10 @@
void *play_loop_(void *arg)
{
+ unsigned written_time_last = 0, bh_index_last_w = 0, bh_index_last_o = BITRATE_HIST_SIZE;
+ FLAC__uint64 decode_position_last = 0;
+
+
(void)arg;
while(file_info_.is_playing) {
@@ -326,7 +332,8 @@
const unsigned n = min(wide_samples_in_reservoir_, SAMPLES_PER_WRITE);
const unsigned delta = n * channels;
int bytes;
- unsigned i;
+ unsigned i, written_time, bh_index_w, bh_index_o;
+ FLAC__uint64 decode_position;
if(flac_cfg.output.replay...
2004 Sep 10
0
getting framesize in client
...);
file_info_.seek_to_in_sec = -1;
file_info_.play_thread_open = true;
@@ -304,6 +306,9 @@
void *play_loop_(void *arg)
{
+ unsigned written_time_last = 0, bh_index_last_w = 0, bh_index_last_o = BITRATE_HIST_SIZE;
+ FLAC__uint64 decode_position_last = 0;
+
(void)arg;
while(file_info_.is_playing) {
@@ -326,7 +331,8 @@
const unsigned n = min(wide_samples_in_reservoir_, SAMPLES_PER_WRITE);
const unsigned delta = n * channels;
int bytes;
- unsigned i;
+ unsigned i, written_time, bh_index_w;
+ FLAC__uint64 decode_position;
if(flac_cfg.output.replaygain.enable...
2007 Aug 16
0
Branch 'vivi' - 18 commits - configure.ac doc/swfdec-sections.txt libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_types.h libswfdec/swfdec_player.c vivified/core vivified/ui
...app->player);
app->player = swfdec_gtk_player_new (SWFDEC_AS_DEBUGGER (app->debugger));
app->player_inited = FALSE;
@@ -262,42 +263,25 @@ vivi_application_step_forward (gpointer
return FALSE;
}
-static void
+void
vivi_application_check (ViviApplication *app)
{
- gboolean is_playing, is_breakpoint;
+ gboolean is_breakpoint;
/* if we're inside some script code, don't do anything */
if (swfdec_as_context_get_frame (SWFDEC_AS_CONTEXT (app)))
return;
- is_playing = swfdec_gtk_player_get_playing (SWFDEC_GTK_PLAYER (app->player));
is_breakpoint = ap...
2007 Aug 14
0
Branch 'vivi' - 11 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/Makefile.am libswfdec/swfdec.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h vivified/core
...VIVI_APPLICATION_STEPPING,
+ VIVI_APPLICATION_EXITING,
} ViviApplicationPlayback;
enum {
@@ -215,6 +216,12 @@ vivi_application_check (ViviApplication
swfdec_as_context_maybe_gc (SWFDEC_AS_CONTEXT (app));
switch (app->playback_state) {
+ case VIVI_APPLICATION_EXITING:
+ if (is_playing)
+ swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (app->player), FALSE);
+ if (is_breakpoint)
+ g_main_loop_quit (app->loop);
+ break;
case VIVI_APPLICATION_STOPPED:
if (is_playing)
swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (app->player), FALSE);
@@ -314...
2004 Aug 06
0
Icecast2 Ogg Clients
...gin actually only grabs .mp3 extentions and also urls without
extensions. So it's not entirely correct to say that the mp3 input plugin
grabs everything except .ogg. When winamp is told to play a file, it will
pass the URL to each of the input plugins (via a call to the
input-plugin-coded is_playable() function. If the input plugin returns 1
from this call, then that input plugin is invoked. Now I'm not sure in
which order the input plugins are called, but I thought the mp3 input was
invoked last as a sort of catch-all "if nothing else matches, lets try to
assume it's a m...
2004 Sep 10
3
getting framesize in client
On Fri, Nov 08, 2002 at 12:39:52PM -0800, Josh Coalson wrote:
> --- Miroslav Lichvar <lichvarm@phoenix.inf.upol.cz> wrote:
> > I have few notes:
> >
> > It seems there is changed API in CVS again. So, what about adding
> > function like
> > unsigned FLAC__format_frame_size(const FLAC__Frame *frame)
> > which returns size of the frame in bytes. This
2007 Aug 13
0
Branch 'vivi' - 24 commits - configure.ac libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h vivified/core vivified/dock vivified/ui
..._forward (gpointer appp)
+{
+ ViviApplication *app = appp;
+ guint next_event;
+
+ next_event = swfdec_player_get_next_event (app->player);
+ swfdec_player_advance (app->player, next_event);
+
+ return FALSE;
+}
+
+static void
+vivi_application_check (ViviApplication *app)
+{
+ gboolean is_playing = swfdec_gtk_player_get_playing (SWFDEC_GTK_PLAYER (app->player));
+ gboolean is_breakpoint = app->loop != NULL;
+
+ switch (app->playback_state) {
+ case VIVI_APPLICATION_STOPPED:
+ if (is_playing)
+ swfdec_gtk_player_set_playing (SWFDEC_GTK_PLAYER (app->player), FALSE);
+...
2004 Aug 06
2
Icecast2 Ogg Clients
> They should. A large number of them are horribly broken (I don't know about
> audion, but in the case of both xmms and winamp, the plugin API is designed
> such that the _plugin_ has to do the HTTP streaming itself - and the plugin
> has to decide whether to handle the play request _before_ it actually starts
> the request. I believe this was fixed in winamp3, but winamp3
2005 May 25
0
[PATCH] Fix fuction prototypes/definitions with void argument
...-void FLAC_XMMS__init()
+void FLAC_XMMS__init(void)
{
ConfigFile *cfg;
FLAC__uint32 test = 1;
@@ -368,7 +368,7 @@ void FLAC_XMMS__play_file(char *filename
pthread_create(&decode_thread_, NULL, play_loop_, NULL);
}
-void FLAC_XMMS__stop()
+void FLAC_XMMS__stop(void)
{
if(file_info_.is_playing) {
file_info_.is_playing = false;
@@ -397,7 +397,7 @@ void FLAC_XMMS__seek(int time)
}
}
-int FLAC_XMMS__get_time()
+int FLAC_XMMS__get_time(void)
{
if(audio_error_)
return -2;
@@ -407,7 +407,7 @@ int FLAC_XMMS__get_time()
return flac_ip.output->output_time();
}
-void FLAC...
2007 Aug 16
0
Branch 'vivi' - 23 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_sprite_movie.c test/trace vivified/core
...APPLICATION (app), FALSE);
+
+ return app->playback_state == VIVI_APPLICATION_EXITING;
+}
+
static gboolean
vivi_application_step_forward (gpointer appp)
{
@@ -204,9 +237,14 @@ vivi_application_step_forward (gpointer
static void
vivi_application_check (ViviApplication *app)
{
- gboolean is_playing = swfdec_gtk_player_get_playing (SWFDEC_GTK_PLAYER (app->player));
- gboolean is_breakpoint = app->loop != NULL;
+ gboolean is_playing, is_breakpoint;
+ /* if we're inside some script code, don't do anything */
+ if (swfdec_as_context_get_frame (SWFDEC_AS_CONTEXT (app)))
+...
2007 Oct 23
6
wxRuby 1.9.2
I''m happy to announce that wxRuby 1.9.2 is now available from Rubyforge.
As usual we''ve got source and binary gems for Win32, OS X and Linux:
http://rubyforge.org/frs/?group_id=35
or
gem install wxruby
== WHAT''S NEW ==
This release has a mix of new syntax features, new classes, and lots of
minor fixes and additions
* New shorter syntax for event handlers
* New
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
...ing_escape, 1);
diff --git a/libswfdec/swfdec_net_connection.c b/libswfdec/swfdec_net_connection.c
index f36ea84..d154c35 100644
--- a/libswfdec/swfdec_net_connection.c
+++ b/libswfdec/swfdec_net_connection.c
@@ -139,19 +139,20 @@ swfdec_net_connection_init_context (Swfd
g_return_if_fail (SWFDEC_IS_PLAYER (player));
context = SWFDEC_AS_CONTEXT (player);
- conn = SWFDEC_AS_OBJECT (swfdec_as_object_add_function (context->global,
- SWFDEC_AS_STR_NetConnection, SWFDEC_TYPE_NET_CONNECTION, NULL, 0));
+ proto = swfdec_as_object_new_empty (context);
+ if (proto == NULL)
+ return;
+ c...
2004 Sep 10
0
http streaming in the xmms plugin
...bitrate_history_[BITRATE_HIST_SIZE];
+ static decoder_funcs_t const * decoder_func_table_;
InputPlugin *get_iplugin_info()
{
***************
*** 136,141 ****
--- 176,206 ----
return &flac_ip;
}
+ void set_track_info(const char* title, int length_in_msec)
+ {
+ if (file_info_.is_playing) {
+ flac_ip.set_info((char*) title, length_in_msec, file_info_.sample_rate * file_info_.channels * file_info_.bits_per_sample, file_info_.sample_rate, file_info_.channels);
+ }
+ }
+
+ static gchar* homedir()
+ {
+ gchar *result;
+ char *env_home = getenv("HOME");
+ if (env_hom...