search for: convsiz

Displaying 7 results from an estimated 7 matches for "convsiz".

Did you mean: convsize
2010 Jun 11
1
Help - Variable declaration 'convsize' in file 'decoder_example.c'
?? Hello list! I am new to using vorbis. To get preliminary idea about its usage, I went through the file 'decoder_example.c'. I tried to create a project to compile but the compiler reports that the variable 'convsize' is undeclared. Please where is this variable declared? Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis/attachments/20100611/95d736c6/attachment.htm
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
...equires 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, which now works: long bytes_filled =...
2002 Aug 06
0
Getting a GUI to work with Vorbis code
...*/ #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 App About class CAboutDlg : public CDialog { public: CAboutDlg();...
2001 Apr 05
1
decoder_example -- event driven?
...s right. samples is the size of each channel. Convert the float values (-1.<=range<=1.) to whatever PCM format and write it out */ while((samples=vorbis_synthesis_pcmout(&vd,&pcm))>0) { int i,j; int clipflag=0; int 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;...
2002 Oct 05
2
ogg123 remote interface
...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 audio_play_arg; - +buf_t *audio_buffer_to_cleanup = NULL; /* ------------------------- config file options -------------------------- */ @@ -280,13 +273,14 @@ int items;...
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