search for: ov_clear

Displaying 20 results from an estimated 35 matches for "ov_clear".

Did you mean: ev_clear
2000 Dec 13
2
ov_clear segfaults?
Hi guys, I'm working doing the Java->JNI->OggVorbis thing. As a test to get me going, I've just written a quick routine that dumps info about the file test.ogg in the current directory. The problem arises when I call ov_clear. I get a segfault everytime. Note that I am *not* doing any decoding (ov_read) at all, just ov_comment and ov_info. Should I only call ov_clear if I have called ov_read? If I comment out the ov_clear, everything works fine. This is good, as it means I'm on the right track and I at least *parti...
2003 Apr 01
3
Access Violation when calling ov_clear
I get an access violation when calling ov_clear(). I know ov_open() worked because I used ov_info to get the sampling rate and number of channels in the .ogg file. I also know the FILE pointer and the OggVorbis_File structure are still in scope (they're member variables of the same class my deconstructor is in (where ov_clear() is called))...
2004 May 17
0
ov_clear Crash
Hi All, Im having troubles with ov_clear crashing or just failing to close properly. Is there anything else i should make sure im doing before i call ov_clear. My code basically consists of one ogg file running completley in its own thread where it decodes into direct sound buffers. I only run 2 threads at anyone time, and ive also notic...
2003 Sep 14
0
ov_clear(&vorbis) segfaults? (Backtrace and test case)
...Sample Rate: 22050 Trying to clear vorbis struct. (Crash time.) Program received signal SIGSEGV, Segmentation fault. 0x400b0f89 in free () from /lib/libc.so.6 (gdb) bt #0 0x400b0f89 in free () from /lib/libc.so.6 #1 0x401a465f in vorbis_dsp_clear () from /usr/lib/libvorbis.so.0 #2 0x40039b6b in ov_clear () from /usr/lib/libvorbisfile.so.3 #3 0x08048ac9 in main (argc=3, argv=0xbffff884) at audio_test.c:98 #4 0x40053917 in __libc_start_main () from /lib/libc.so.6 (gdb) quit The program is running. Exit anyway? (y or n) y [alex@elbmin3 audio_crash_test]$ Here is a semi-temporary URL to a tarball...
2003 Sep 14
6
ov_clear(&vorbis) segfaults?
Hello all. I'm new to this list. I'm also new to coding with libvorbis and things, so please bear with me. :) I've been having trouble with libvorbisfile. My use of it is fairly simple, but when I try to ov_clear the vorbis file, it segfaults. I can attach or otherwise make availible some demo source code, but for now I'll just pull out relevant lines: //BEGIN PSEUDO CODE OggVorbis_File vorbis; vorbis_info *info; if(ov_open(infile, &vorbis, NULL, 0) != 0) error(); if((info = ov_info(&vorbis...
2003 Sep 18
1
Mixing libvorbisfile with SDL
I am having no luck at all mixing libvorbisfile with the cross-platform gaming library SDL. It seems that any time I call ov_clear, the app goes unstable and crashes later in calls to glibc. This is unacceptable for obvious reasons and I was wondering if there was a way to fix it by just using libvorbis. I was going to experiment with the possibility, but I have, as yet, been unable to find any programming docs about libv...
2002 Dec 09
2
ov_open/ov_test weirdness
...tmp = "Internal logic fault; indicates a bug or heap/stack corruption."; break; default: tmp = "Unknown error"; break; } fprintf(stderr, "error: %s\n", tmp); return -1; } ov_clear(&vf); fclose(f); fprintf(stderr, "Ok1\n"); f = fopen(argv[1], "rb"); if(!f) { fprintf(stderr, "fopen for '%s' failed: %s", file, strerror(errno)); return -1;...
2004 Sep 07
3
Introducing ov_open_callbacksp and ov_clearp
...need a ov_info_basic function so that no internal structure is returned (which seems to me a somewhat bad design because you'll get stuck with that: each time an internal modification will occur, outer code may have to be fixed or re-compiled). I propose to add that to vorbisfile.h: /* same as ov_clear but frees memory associated to vf too */ IMPORT_C int ov_clearp(OggVorbis_File *vf); /* same ov_open_callbacks but also allocates the OggVorbis_File object into *vf, if any error happen, returns same code as ov_open_callbacks and free any memory allocated */ IMPORT_C int ov_open_callbacksp(void *da...
2003 Jan 05
2
VorbisFile library crashs.
Hello! There is a problem with the VorbisFile library. It only works when I open an OGG file for the 1st time. After I closed the file and try to open another one or the same it crashs. It seems it applies to the use of either ov_open or ov_test functions or their combination. I wrote a test app that illustrates the bug. It crashs with a message "Unmapped memory exception". It's
2004 Feb 11
1
Problem using 'ov_open()'...
...blic: OGGDATA(); ~OGGDATA(); bool OpenOGG(char*); pSOUNDDATA DecodeOGGLow(); void CloseOGG(pSOUNDDATA); private: FILE *pFile; OggVorbis_File *pOVFile; }; OGGDATA::OGGDATA() { pFile = NULL; pOVFile = NULL; } OGGDATA::~OGGDATA() { if(pOVFile != NULL) ov_clear(pOVFile); if(pFile != NULL) fclose(pFile); } bool OGGDATA::OpenOGG(char *Filename) { int Result; if(pOVFile != NULL) ov_clear(pOVFile); if(pFile != NULL) fclose(pFile); if((pFile = fopen(Filename, "rb")) == NULL) return false; Result = ov_open(pFile,...
2000 Aug 31
2
More information on exception
...; FILE *f, *f2; f = fopen("testnew.ogg", "rb"); if (ov_open(f, &ov, NULL, 0) < 0) return 0; f2 = fopen("testnew.ogg", "rb"); if (ov_open(f2, &ov2, NULL, 0) < 0) { ov_clear(&ov); return 0; } ov_clear(&ov2); ov_clear(&ov); return 0; } Compiled under Windows with Borland C++Builder 5. When run, exceptions occur in block.c at one of these lines: 158: if(vb->localstore)free(vb->localstore); 646: v-&g...
2002 Jul 23
1
[BUG] libvorbisfile ov_test() ?
...dfile=fopen("./test.ogg","r"); if( ov_test(stdfile, &vf, NULL, 0) ==0) { tmp = ov_test_open(&vf); if( tmp==0 ) { printf("ov_test_open() succeded\n"); ov_clear(&vf); return(0); } printf("fail in ov_test_open(), reason: %d\n",tmp); printf("vf.ready_state is: %d\n",vf.ready_state); ov_clear(&vf); return(0); } } <p&g...
2000 Jun 20
3
WinAmp Plugin
Hi, I downloaded afew off files from the site (www.vorbis.com) and also downloaded the winamp plugin (dll file), but I am unable to play the off files. -- Ramakrishnan.M | Phone : (+91-80)-5099132 DSP Applications Group, Texas Instruments | email : rkrishnan@ti.com Bangalore, India | rkrishnan_m@yahoo.com ---
2000 Aug 22
2
Borland modification
...loca(x)) # endif # define rint(x) (floor((x)+0.5)) #endif #endif Sqrt domain errors still occur when encoding a full range pure sine wave. Is anyone else seeing that problem? An exception occasionally occurs on line 1251 of smallft.c: if(l->trigcache)free(l->trigcache); when calling ov_clear for vorbisfile. It seems to occur for the new higher bitrate files. The command line tools do not seem to cause the exception. Using old beta 1 code works fine. Chris http://www.goldwave.com --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/...
2005 Nov 05
1
buffer overruns for small files
...h 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 and crash on ov_clear. These are my TRACE statements: >= 10kb: Opening Audio File 'no_0.ogg' vi->channels = '2' vi->rate = '44100' pcmTotal = '15341' pcmTotal * vi->channels * 2 = '61364' BufferSize = '61364' dwBufferLength = '61364' BufferSize = ...
2005 Jun 17
1
ov_open fails on Version 1.0.1
...would greatly appreciate it! Steve Russell // AudioFile.cpp #include "vorbis/codec.h" #include "vorbis/vorbisfile.h" . . . OggVorbis_File vf; FILE* pFile; pFile = fopen("verdes_2.ogg", "rb"); int err = err = ov_open(pFile, &vf, NULL, 0); . . . ov_clear(&vf); In my app's directory, I have ogg.dll vorbis.dll vorbisfile.dll and have added to my project these files: ogg\ogg.h ogg\os_types.h vorbis\codec.h vorbis\vorbisfile.h I am ignoring this library: MSVCRT.lib "Use run-time library" is set to Multi-threaded DLL. "Obje...
2003 Dec 15
1
Yet another vf question...
Should I ov_clear a failed ov_open/test/test_open call? The xmms plugin does an fclose on failure, and that seems to work, but I thought I ought to know for certain. (An observation: I think the quantity of questions and bugs raised along the lines of "I did open file, ov_open, ov_read, close file, open an...
2012 May 27
1
Thread Problem.
...&dummy); if(bytes_read < 0) { Printf("\nov_read error"); } else if(bytes_read == 0) { // End of data if(!music_queue.empty()) { ov_clear(&strm.ovf); // Get next song strm.raw_ogg = music_queue[0]; music_queue.pop_front(); strm.pos = 0; if(strm.raw_ogg != NULL) { if(ov_open_callbacks(&a...
2001 Feb 02
1
ov_open on non oggvorbis files
there can be a minor bug in vorbisfile: when opening an invalid file with ov_file the errorcode is returned as it should, but the OggVorbis_File struct can't load another file: using ov_open on the same struct with another file segfaults. also using ov_clear on the struct before reopening does'nt helps. workaround: delete and recreate new the OggVorbis_File for each opened file. -- jrml ..//korova.dyne.org 6EEE 4FB2 2555 7ACD 8496 AB99 E2A2 93B4 6C62 4800 --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http:...
2005 Jun 17
0
ogg vorbis decoding in MFC/C++ app
...rogram and send it to my waveOut functions. // AudioFile.cpp #include "vorbis/codec.h" #include "vorbis/vorbisfile.h" . . . OggVorbis_File vf; FILE* pFile; pFile = fopen("verdes_2.ogg", "rb"); int err = err = ov_open(pFile, &vf, NULL, 0); . . . ov_clear(&vf); In my app's directory, I have ogg.dll vorbis.dll vorbisfile.dll and have added to my project these files: ogg\ogg.h ogg\os_types.h vorbis\codec.h vorbis\vorbisfile.h I am ignoring this library: MSVCRT.lib "Use run-time library" is set to Multi-threaded DLL. I have rem...