search for: sig_request

Displaying 4 results from an estimated 4 matches for "sig_request".

2006 Jan 27
0
patch for bugs in vorbis-tools-1.1.1
Hi I've found bugs in vorbis-tools and wrote this patch to fix them: 1st part is to fix single-channel flac files. 2nd part fixes a problem with thread race causing lockup if you press Ctrl-C Ctrl-C sets sig_request.cancel, buffer thread exits if it 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_ca...
2002 Oct 05
2
ogg123 remote interface
...ransport.c ogg123/http_transport.c --- ogg123.orig/http_transport.c Wed Jul 17 14:12:18 2002 +++ ogg123/http_transport.c Sat Oct 5 13:52:40 2002 @@ -35,7 +35,6 @@ #define INPUT_BUFFER_SIZE 32768 -extern stat_format_t *stat_format; /* Bad hack! Will fix after RC3! */ extern signal_request_t sig_request; /* Need access to global cancel flag */ typedef struct http_private_t { @@ -50,6 +49,7 @@ data_source_t *data_source; data_source_stats_t stats; + stat_format_t *stat_format; } http_private_t; @@ -82,7 +82,7 @@ if (myarg->cancel_flag || sig_request.cancel) return -1;...
2004 Jun 15
3
Repeat patch for ogg123
...playlist_array[j]; - playlist_array[j] = temp; - } - } - /* Setup signal handlers and callbacks */ ATEXIT (exit_cleanup); @@ -382,12 +369,31 @@ signal (SIGTSTP, signal_handler); signal (SIGCONT, signal_handler); + k=0; + + while ((k < options.repeat || options.repeat==0) && !sig_request.exit) { + k++; - /* Play the files/streams */ - i = 0; - while (i < items && !sig_request.exit) { - play(playlist_array[i]); - i++; + /* Shuffle playlist */ + if (options.shuffle) { + int i; + + srandom(time(NULL)); + + for (i = 0; i < items; i++) { +...
2003 Mar 09
0
ogg123 --end 1:59 patch.ogg
...ot;Could not skip %f seconds of audio."), options.seekpos); } + if (options.seekpos > options.endpos) { + printf("Error: -k > -K\n"); + options.endpos = 0.0; + } /* Main loop: Iterates over all of the logical bitstreams in the file */ while (!eof && !sig_request.exit) { @@ -539,6 +556,12 @@ next_status = status_interval; } else next_status -= ret; + + if (options.endpos > 0.0) + if (options.endpos <= currenttime(stat_format, source, decoder)) { + eof = eos = 1; + break; + } /* Write audio data block to output, skipping...