search for: audio_play_arg

Displaying 2 results from an estimated 2 matches for "audio_play_arg".

2002 Oct 05
2
ogg123 remote interface
...(stderr, _("Error: Out of memory.\n")); diff -urN -X diff.ignore ogg123.orig/ogg123.c ogg123/ogg123.c --- ogg123.orig/ogg123.c Sat Jul 6 21:12:18 2002 +++ ogg123/ogg123.c Sat Oct 5 14:22:06 2002 @@ -48,19 +48,12 @@ void exit_cleanup (); -void play (char *source_string); +void play (audio_play_arg_t *audio_play_arg, buf_t *audio_buffer, char *source_string); -/* take buffer out of the data segment, not the stack */ -#define AUDIO_CHUNK_SIZE 4096 unsigned char convbuffer[AUDIO_CHUNK_SIZE]; int convsize = AUDIO_CHUNK_SIZE; - ogg123_options_t options; -stat_format_t *stat_format; -buf_t *a...
2006 Jan 27
0
patch for bugs in vorbis-tools-1.1.1
...sees sig_request.cancel However, if Ctrl-C was pressed here do { if (nthc-- == 0) { ----------------> Ctrl-C if (audio_buffer) buffer_submit_data(audio_buffer, convbuffer, ret); else audio_play_callback(convbuffer, ret, eos, &audio_play_arg); nthc = options.nth - 1; } , the code gets into buffer_submit_data that will wait on buf->write_cond that is never signalled because the buffer thread has just exited. The race is heavily dependent on thread scheduling and on some OSes it might happen very rarely or not a...