search for: vorbis_synthesi

Displaying 16 results from an estimated 16 matches for "vorbis_synthesi".

Did you mean: vorbis_synthesis
2005 Jun 23
2
Sample accuracy in reading
Hey guys, I've finished my work on reading vorbis files (straight reading at either PCM sample lengths, or time lengths). However, I've run across a question. When you call vorbis_synthesis_read, I assume that increments the internal ptrs so you don't get the same data twice. The question is, what happens if you call vorbis_synthesis and vorbis_synthesis_blockin? Does the next call have what SHOULD be the next PCM data, or has it incidentally been invalidated? A little simpler, i...
2009 May 12
2
compile error of libtheora example
...player_example.c:(.text+0xed9): undefined reference to `ogg_stream_pagein' player_example.c:(.text+0xef1): undefined reference to `ogg_stream_packetout' player_example.c:(.text+0xf18): undefined reference to `theora_decode_header' player_example.c:(.text+0xf6d): undefined reference to `vorbis_synthesis_headerin' player_example.c:(.text+0xfa9): undefined reference to `ogg_stream_clear' player_example.c:(.text+0xfbd): undefined reference to `ogg_sync_pageout' player_example.c:(.text+0x102f): undefined reference to `theora_decode_header' player_example.c:(.text+0x10a2): undefined re...
2006 Aug 31
0
OpenAl and Vorbis
...audiobuf, int fragsize){ // single audio fragment audio buffering bool audiobufReady = false; int size=0; int audiobufFill = 0; while(!audiobufReady){ //1)try to decode some data while(!audiobufReady){ float **pcm; //if there's pending, decoded audio, grab it if((size=vorbis_synthesis_pcmout(&vorbisDspState,&pcm))>0){ int count=audiobufFill/2; int maxsamples=(fragsize-audiobufFill)/vorbisInfo.channels/2;// /2 int i; for(i=0; i<size && i<maxsamples; i++){ for(int j=0;j<vorbisInfo.channels;j++){ int val=(int) (pcm[j][i]*32767...
2003 Oct 09
0
Vorbis plugin for RealOne Player
Hi All, I am trying to build an Ogg/Vorbis plugin for RealOne Player through the HelixCommunity source. During runtime, however, I saw an access violation. I did some debugging and narrowed it down to the following function in the Vorbis source.. int vorbis_synthesis(vorbis_block *vb,ogg_packet *op){ vorbis_dsp_state *vd=vb->vd; backend_lookup_state *b=vd->backend_state; vorbis_info *vi=vd->vi; codec_setup_info *ci=vi->codec_setup; oggpack_buffer *opb=&vb->opb; int type,mode,i; /...
2004 Nov 29
1
Segfault in vorbis_book_decodevv_add
...D 5.1 installation. The backtrace looks like : (gdb) bt #0 0x28741d88 in vorbis_book_decodevv_add () from /usr/local/lib/libvorbis.so.3 #1 0x2873f6b0 in res2_inverse () from /usr/local/lib/libvorbis.so.3 #2 0x28740841 in mapping0_inverse () from /usr/local/lib/libvorbis.so.3 #3 0x28737185 in vorbis_synthesis () from /usr/local/lib/libvorbis.so.3 #4 0x2875b620 in _fetch_and_process_packet () from /usr/local/lib/libvorbisfile.so.4 #5 0x2875d614 in ov_read () from /usr/local/lib/libvorbisfile.so.4 #6 0x287220e8 in get_iplugin_info () from /usr/X11R6/lib/xmms/Input/libvorbis.so #7 0x00001000 in ?? (...
2005 Nov 05
1
buffer overruns for small files
I wonder if anyone would have a comment on an experiment I have pretty much completed in my MFC/C++ project. With my simple libvorbis implementation, ogg decoding works just fine for files that are 10kb or larger. For anything smaller (actually, I don't have a 9kb file, so <= 8), it seems that I get an inaccurate value for ov_pcm_total. Though ov_read returns zero, I overflow the buffer
2006 Jan 19
0
want to know, how much data will be extracted from every single packet
...racted from the packet after synthesys)? coz i need to seek quickly to the byte no X in unpacked audio stream as it will be uncompressed PCM. for now when program starts, i must run through all pages, getting all packets, extracting all of them and getting result datasize using such code: .... if (vorbis_synthesis(&vorb_block,&m_packets[cur_packet_num]) == 0) vorbis_synthesis_blockin(&vorb_dsp_state,&vorb_block); int bout = vorbis_synthesis_pcmout(&vorb_dsp_state,NULL); packet_result_data_size[cur_packet_num] = bout * sizeof(int16) * vorb_info.channels; .... of coz it's very sl...
1999 Oct 11
2
XMMS plugin patch
...hannels); - vorbis_ip.set_info(filename, 128000, 0, od.vi.rate, od.vi.channels); + vorbis_ip.set_info(filename, -1, 128000, od.vi.rate, od.vi.channels); while(i < 2) { while(i < 2 && ogg_sync_pageout(&od.oy, &od.og) == 1) { @@ -219,9 +219,11 @@ vorbis_synthesis(&od.vb, &od.op); vorbis_synthesis_blockin(&od.vd, &od.vb); if((samples = vorbis_synthesis_pcmout(&od.vd, &pcm)) > 0) { + gint16 *outptr = pcmout; + for(s = 0; s < samples; s++) for(c = 0; c &lt...
2006 Jan 19
0
re: want to know, how much data will be extracted from every single packet; solved but some issues
...t unpack some last packets. As i read different mail lists i found metion about the fact that for unpacking packet X one need unpack packet X - 1 befor. I honestly tried do this, but in fact works properly only this code: for (uint32 i = m_packets_number - 6; i < m_packets_number; i++) { ?if (vorbis_synthesis(&vorb_block,&m_packets[i])==0) ? vorbis_synthesis_blockin(&vorb_dsp_state,&vorb_block); ?int bout = vorbis_synthesis_pcmout(&vorb_dsp_state,NULL); ?if (i == m_packets_number - 1) ?{ ? m_packets_real_lengths[i] ?= 2 * m_vorb_info.channels * bout; ? m_data_size += m_packet...
2007 Feb 15
1
Using decoding vorebis from a Vorbis / Theora Video
I am trying to write a media player in c# which will be able to play .ogg video files which contain Theora video and Vorbis audio streams. Currently I am using LibOgg and LibTheora (via a SWIG generated wrapper). This currently is able to decode the video and output it to the screen. I would like to use LibVorbis to decode the audio stream. Looking at the documentation it looks like I have to use
2010 Apr 29
0
liboggz release 1.0.2 (1.0-stable series)
...of form "KEY=" and "KEY". Changes ======= The following changes since Release 1.0.1: Conrad Parker (16): Mozilla 498380: free oggz->packet_buffer on close Mozilla #496063: Infinite loop shutting down video during a seek operation Mozilla #487519: Crash in vorbis_synthesis tests: allow NULL-valued comments Allow NULL-value comments, and form "KEY=" add TODO file with tasks and ideas for improvement. update TODO: get_preroll() exists update TODO: add -1 gp warning to oggz-validate TODO: move Dirac tool updates to specific...
2010 Apr 29
0
liboggz release 1.1.1
...t; and "KEY". Details ======= This release contains the following changes since version 1.1.0: Conrad Parker (18): Mozilla 498380: free oggz->packet_buffer on close Mozilla #496063: Infinite loop shutting down video during a seek operation Mozilla #487519: Crash in vorbis_synthesis tests: allow NULL-valued comments Allow NULL-value comments, and form "KEY=" add TODO file with tasks and ideas for improvement. update TODO: byte offsets done update TODO: get_preroll() exists update TODO: add -1 gp warning to oggz-validate upda...
2001 Apr 05
1
decoder_example -- event driven?
...= memcpy (buffer, data, bytes); ogg_sync_wrote(&oy,bytes); ogg_sync_pageout(&oy,&og); ogg_stream_pagein(&os,&og); /* can safely ignore errors at this point */ /* we have a packet. Decode it */ if(vorbis_synthesis(&vb,&op)==0) /* test for success! */ vorbis_synthesis_blockin(&vd,&vb); /* **pcm is a multichannel float vector. In stereo, for example, pcm[0] is left, and pcm[1] is right. samples is the size of each channel. Convert the float values...
1999 Oct 04
3
Detailed decoder pseudocode (was: Re: ETA?)
...(&vi,&op); i++; } } /* no harm in not checking before adding more */ buffer=ogg_sync_buffer(&oy,4096); bytes=read(STDIN_FILENO,buffer,4096); ogg_sync_wrote(&oy,bytes); } /* OK, got and parsed all three headers. Initialize the Vorbis packet->PCM decoder. */ vorbis_synthesis_init(&vd,&vi); /* central decode state */ vorbis_block_init(&vd,&vb); /* local state for most of the decode so multiple block decodes can proceed in parallel. We could init...
2002 Aug 06
0
Getting a GUI to work with Vorbis code
...putFile,"Error reading first page of Ogg bitstream data.\n"); exit(1); } if(ogg_stream_packetout(&os,&op)!=1){ /* no page? must not be vorbis */ fprintf(outputFile,"Error reading initial header packet.\n"); exit(1); } if(vorbis_synthesis_headerin(&vi,&vc,&op)<0){ /* error case; not a vorbis header */ fprintf(outputFile,"This Ogg bitstream does not contain Vorbis " "audio data.\n"); exit(1); } printf("We're sure we're Vorbis.\n"); /* A...
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...for packet numbers as a dropped packet will // mess up the running packetCount total (which should be removed eventually) */ if (ogg_packet_get_packetno(op) <= LAST_VORBIS_HEADER_PACKET) { // Currently decoding inside the vorbis headers (first three packets) v_rv0 = vorbis_synthesis_headerin(vi, vc, op); dprintf("Header decode: %d %p %p %p\n", v_rv0, vi, vc, op); if (ogg_packet_get_packetno(op) == LAST_VORBIS_HEADER_PACKET) { /* // WARNING! DO NOT CALL vorbis_synthesis_init BEFORE YOU HAVE // PROCESSED **ALL** THE HEADERS. FAILURE TO DO SO WIL...