search for: convbuff

Displaying 8 results from an estimated 8 matches for "convbuff".

Did you mean: convbuf
2015 Jun 14
2
Sound glitch when using libvorbisfile and libao
Hi Gunter, I think this problem started happening when I upgraded from Debian Wheezy to Debian Jessie. If nothing looks amiss in my code, it probably is a sound driver problem. But since it works 100% of the time in ogg123, I feel I must have missed some corner case. My audio driver is almost always active. I usually have my music player going in the background when I do my testing. The problem
2015 Jun 27
0
Sound glitch when using libvorbisfile and libao
...a before handing it off to ao_play. It requires lots of bookkeeping, pointer arithmetic, and a sufficiently large buffer. First, the bigger buffer. I just pulled this code from ogg123: #define PRIMAGIC (2*2*2*2*3*3*3*5*7) #define AUDIO_CHUNK_SIZE ((16384 + PRIMAGIC - 1)/ PRIMAGIC * PRIMAGIC) char convbuffer[AUDIO_CHUNK_SIZE]; const int convsize = AUDIO_CHUNK_SIZE; The loop is now more convoluted. Here's the old one, for reference: long bytes_read = 0; do { bytes_read = decode_vorbisfile(&vf); ao_play(device, pcmout, bytes_read); } while (bytes_read > 0); Here's the new loop...
2002 Oct 05
2
ogg123 remote interface
...is code and put it under the GPL and he was ok with that. So there should be no problems there. If there are any questions i'd be happy to answer them, Joost Remijn --------------------------------- remove-globals.patch remove the many global variables from ogg123.c This only leaves the convbuffer which will be removed by a later patch make-character-pointers-const.patch Character pointers which are used as const should be const. This was done from gcc warnings which turn up when compiling with -Wwrite-strings. remove-some-compiler-warnings.patch Fixes for some compiler warning...
2000 Oct 26
1
ogg123 does not stop at the end of the file
...rbis-tools: --- vorbis-tools/ogg123/ogg123.c.orig Thu Oct 26 22:37:05 2000 +++ vorbis-tools/ogg123/ogg123.c Thu Oct 26 22:37:29 2000 @@ -461,9 +461,9 @@ while (!eos) { old_section = current_section; switch ((ret = ov_read (&vf, convbuffer, sizeof (convbuffer), is_big_endian, 2, 1, &current_section))) { case 0: /* End of file */ - eof = 1; + eof = eos = 1; break; case -1: /* Stream error */ fprintf(stderr, &...
2006 Jan 27
0
patch for bugs in vorbis-tools-1.1.1
...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 signalled because the buffer thread has just exited. The r...
2001 Apr 05
1
decoder_example -- event driven?
...bout=(samples<convsize?samples:convsize); fprintf (stderr, "\nhoebag, i made it the while loop"); /* convert floats to 16 bit signed ints (host order) and interleave */ for(i=0;i<vi.channels;i++){ ogg_int16_t *ptr=convbuffer+i; float *mono=pcm[i]; for(j=0;j<bout;j++){ #if 1 int val=mono[j]*32767.f; #else /* optional dither */ int val=mono[j]*32767.f+drand48()-0.5f; #endif /* might as well guard against clipping */ if(val>32767){...
2002 Aug 06
0
Getting a GUI to work with Vorbis code
...#ifdef _WIN32 /* We need the following two to set stdin/stdout to binary */ #include <io.h> #include <fcntl.h> #endif #if defined(macintosh) && defined(__MWERKS__) #include <console.h> /* CodeWarrior's Mac "command-line" support */ #endif ogg_int16_t convbuffer[4096]; /* take 8k out of the data segment, not the stack */ int convsize=4096; <p>//************************************************************************** * <p><p>//////////////////////////////////////////////////////////////////////////// / // CAboutDlg dialog used for Ap...
2000 Nov 11
1
esd bug in ogg123
I've run into two problems with ogg123 that appears only when using the esound driver. Case 1: pops in output Audible pops, especially at low volume. Original mp3 file does not exhibit these pops, nor does oss output from ogg123, nor does esd output from mpg123. Things ruled out: disk speed - the HD is ATA/33 with DMA on. It's a single user