search for: audio_buff

Displaying 5 results from an estimated 5 matches for "audio_buff".

Did you mean: audio_buf
2002 Oct 05
2
ogg123 remote interface
...quot;)); 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 *audio_buffer; - -audio_play_arg_t audi...
2006 Jun 17
3
Assistance with an encoding plugin
...riptor); FLAC__stream_encoder_init(plugin->encoder); while(/* audio data left to extract */) { /* audio buffer is an int16_t buffer that paranoia dumps interleaved audio into */ FLAC__stream_encoder_process_interleaved( encoder, audio_buffer, CD_FRAMESIZE_RAW / 4); } FLAC__stream_encoder_finish(encoder); FLAC__stream_encoder_delete(encoder); write_callback simply writes the encoded data out to a file stream, and metadata_callback isn't doing anything at the mome...
2006 Jan 27
0
patch for bugs in vorbis-tools-1.1.1
...nnel 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_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...
2006 Jun 19
0
Assistance with an encoding plugin
...nit(plugin->encoder); > >while(/* audio data left to extract */) >{ > /* audio buffer is an int16_t buffer that paranoia dumps interleaved >audio into */ > FLAC__stream_encoder_process_interleaved( encoder, > audio_buffer, > CD_FRAMESIZE_RAW / >4); > >} > > FLAC__stream_encoder_finish(encoder); > FLAC__stream_encoder_delete(encoder); > >write_callback simply writes the encoded data out to a file stream, and >metadata_ca...
2004 Jun 15
3
Repeat patch for ogg123
...15 18:34:55.000000000 +0200 @@ -149,6 +149,7 @@ opts->status_freq = 10.0; opts->playlist = NULL; + opts->repeat = 1; } @@ -296,6 +297,7 @@ int items; struct stat stat_buf; int i; + int k; setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); @@ -360,21 +362,6 @@ } else audio_buffer = NULL; - - /* Shuffle playlist */ - if (options.shuffle) { - int i; - - srandom(time(NULL)); - - for (i = 0; i < items; i++) { - int j = i + random() % (items - i); - char *temp = playlist_array[i]; - playlist_array[i] = playlist_array[j]; - playlist_array[j] =...