search for: ov_open

Displaying 20 results from an estimated 97 matches for "ov_open".

2004 Feb 09
3
Problem with 'ov_open'...
Hey, I've coded an OGG player for Win32 (it uses AL for playback so it's portable to Linux/Mac), but every time the program gets to the 'ov_open()' function, the app completely freezes, and I have to use the task-manager to kill it. I am supplying it with a valid file handle that was just opened (FILE*) and the vorbis file is also a pointer that is not in use (set to null). Any ideas why this is happenening? Here is my actual source....
2005 Jun 14
3
lack of detail for exception in ov_open
...oogle results that others have had difficulty as well. These google discussions generally involve libraries, dll's and linking options, as though there are perhaps some basic incompatibilities between ogg vorbis and win32 and/or MFC/C++. Very confusing. If I pass fopen a fictitious filename, ov_open returns the proper error. However, if I pass a legitimate filename, ov_open crashes without giving me any apparent clue. Would anybody have a comment or suggestion? I get no responses whenever I post in the codec forums, so I am posting here. Some kind of clue would certainly be much appreciate...
2004 Feb 19
3
Ov_open crash in windows
I am getting the following error from MSVC when calling ov_open() from my app: Unhandled exception in Progname.exe (KERNEL32.DLL): 0xC0000005: Access Violation The call stack shows: KERNEL32! bff7b9a6() VORBISFILE! 00471d1d() I am running Win98 and v1.0 off the vorbis libs. The app is single- threaded. The following code works just fine in a test app I...
2005 Apr 03
3
Direct crash on ov_open
Greetings, I've just downloaded the Ogg/Vorbis Win32 SDK 'OggVorbis-win32sdk-1.0.1.zip' and made a test app to open an ogg file. But as soon as I call ov_open() the program crashes because of an access violation to address 0x00000010... This happens on both Release and Debug builds. The test app is simple: #include "vorbis/codec.h" #include "vorbis/vorbisfile.h" #include <stdio.h> #include <memory.h> void main(void) {...
2002 Dec 27
1
ov_open throws exception (Compiler VC7)
Hi I try to load an ogg file with the vorbisfile library like this: FILE *f = fopen("test.ogg", "rb"); if(!f) ...; ov_open(f, &vf, 0, 0); But ov_open always throws an exception. Im pretty sure its a compiler problem because the same code worked on VC6. Im compiling my programm with the multithreaded dll option as mentioned on the mailing list bevor. Does anybody know if I have to make additional compiler settings?...
2003 Feb 27
1
ov_open from memory
Hi folks, i would like to know if it is valid to load a whole .ogg file into memory and call ov_open like this: ov_open(NULL, &OggVorbisFile, pRawData, RawDataLen); An other question is, is it valid to copy some ogg files into one (resource) file, position the filehandle and use ov_read to read only the ogg file which starts at the current position of the file handle? (In other words, does ov_...
2005 Jun 17
1
ov_open fails on Version 1.0.1
...point out my problem? Needless to say, I 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&quot...
2001 Feb 18
2
Access Violation in ov_open
If I do something similar to the below ov_open always causes an access violation. The call to fopen is successful. Can anybody tell me why? (and how to fix it?) OggVorbis_File vf; int eof=0; int current_section; FILE *fd = fopen("c:\\test.ogg","rb"); if (!fd){ AfxTrace("fopen failed\n"); exit(0); }...
2004 Mar 06
3
access violation in ov_open using VC6
I passed a valid FILE* (from fopen() with "rb") and the address of an OggVorbis_File struct, but an access violation occured when ov_open is called. I have enabled the Multithreaded, but it still doesn't fix the problem. I look at the vorbis_comment.exe source and I see vcedit_open() function and other vcedit_*() functions everywhere. I am assuming that there is known issue with VC and ov_open that's why vorbis_comment is us...
2004 Dec 05
1
ov_open error !
...fcntl.h> #pragma comment(lib, "vorbisfile_d") int main(int argc, char **argv) { FILE *fp; OggVorbis_File obf; if(argc < 1) return -1; if((fp = fopen("f:\\testogg.ogg", "rb")) == NULL) { printf("Open Files Error !\n"); return -1; } if(ov_open(fp, &obf, NULL, 0) < 0) { printf("OggVorbis File Open Error ~\n"); return -1; } } run time error when ov_open call :(, help me ! -run in win32 os
2005 Jun 30
2
Reading from memory and ov_open
...ng with oggvorbis-win32sdk-1.0.1 and have a semi-hypothetical question. Let's suppose that, for whatever reason, I've allocated a block of memory, and I've loaded into this memory a perfectly valid ogg vorbis file. Now I'd like to decode this vorbis data, but I'm stuck calling ov_open() because I don't have a FILE*, I have a block of memory. (This may in fact be an ignorant stdio question on my part; if so, I apologize). But - what do I do? (Sure, I could push this memory back down into a temp file and decode that, but that seems terribly wasteful....) Certainly the capabi...
2004 Apr 06
1
ov_open fails on Version 1.0.1
Hi, I've just got around to moving from version 1.0 to 1.0.1. Now when I run my program, at least on Windoze, (haven't tried Linux yet), I get an Access Exception on the ov_open. Nothing else has changed. All I did was replace the lib and dll files that are in the win32sdk zip and re-build all, so it's the same the project files for for both builds. Here the snippet of code that fails: int processOGG(FILE *inFile, char fileName [], int fileSize, int fileType) { og...
2002 Dec 09
2
ov_open/ov_test weirdness
Hi, I've been playing with a little player, and it seems I can't ov_open a file twice? heres a snipit... <p>#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <vorbis/vorbisfile.h> OggVorbis_File vf; FILE *f = NULL; int main(int argc, char **argv) { char *file = NULL; int err = 0; if(arg...
2002 Apr 24
2
ov_open error
Hi, I put together a small a Visual C++ 6.0 project that uses the code from vorbisfile_example.c. I open an ogg file in binary mode and when ov_open gets called, it always fails. I then put together another project and compiled vorbisfile so I could see where the error was occuring. It is happening in _fetch_headers when it calls ogg_stream_packetout. The return values is -1, which means there is a bad header. I took the same ogg file and then...
2005 May 23
1
Why does ov_open fail?
...ment a very simple comment reader in visual c++. but for some reason the very first operation to initialize the OggVorbis_File struct keeps failing and i can't figure out why. is there anything i might not have considered? The memory exception seems to happen deep within the calling tree of ov_open, in some operation that ms seemed to have implemented. but i believe i followed all rules (binary mode and so on), so this should not happen. i hope, someone can give me a hint. thanks. wan-hi void ProcessOGG(LPCTSTR pFilePath, MetaData& data) { OggVorbis_File vf; vorbis_info...
2004 Apr 05
2
Massive Problems on Windows XP pro with Libvorbis[Vorbisfile]1.0.1
Hey there I'm using CodeWarrior8 for development on the windows platform and have been trying for some time now to add .ogg support to my engine project. First i had the problem quite a lot had out there with a crashing/freezing call to ov_open which i solved by recompiling those libs against the single-threaded variant of the core libs using VC++ 6 But now i have another problem. now every call to ov_open or ov_test or whatever returns OV_EREAD, no matter which file i use. I am perfectly positive on thos .ogg files beeing correct as sev...
2004 Feb 11
1
Problem using 'ov_open()'...
OK, I've been developing a small class that I can use in virtually any application to load and decode OGG files. Everything works fine until it reaches the line with the call to ov_open, then the application freezes and has to be killed. This is a single-threaded Win32 app. Below is both the structure that gets passed around, and my entire OGG class. Maybe one of you can figure this out. #include <vorbis\codec.h> #include <vorbis\vorbisfile.h> #include <stdio.h&...
2004 Jan 06
0
AW: access violation in ov_open
...ed *_static lib's all works fine. (the shipped *_static lib's conflict with my libcmt.lib because of multiple definitions of some functions) only the dynamic libs cause an access-violation in NTDLL greetings, Sebastian ---------- <p><p>Hi! my code causes access-violations in ov_open. I'm using MS VisualC++ 6 SP5 on WinXPpro with oggvorbis 1.0.1 o I tried to compile the vorbisfile-example, shipped with the win32 sdk. it has the same access-violation problem. the fopen()'s are successful! I don't think it's my fault. o I downloaded the libvorbis and libogg, co...
2005 Apr 03
0
Direct crash on ov_open
Greetings, I've just downloaded the Ogg/Vorbis Win32 SDK 'OggVorbis-win32sdk-1.0.1.zip' and made a test app to open an ogg file. But as soon as I call ov_open() the program crashes because of an access violation to address 0x00000010... This happens on both Release and Debug builds. The test app is simple: #include "vorbis/codec.h" #include "vorbis/vorbisfile.h" #include <stdio.h> #include <memory.h> void main(void) {...
2004 Apr 21
3
Streaming ogg from filepointer pointing to archive of many oggs. Ogg stream does not stop after end of one ogg file - what to do ?
Hello, I'm currently trying to implement streaming off ogg-files out of an archive file using SDL and SDL_mixer for playback. Therefore i create a FILE * filepointer, place it to the beginning of an ogg file inside the archive and hand over the filepointer to ov_open. ( command: ov_open(fp, &music->vf, NULL, 0) ). This works fine so far. The problem is: if i put many oggs together in one archive, the playback stops only after the last ogg file. Why is this a problem ? Suppose i want to play the ogg files in random order. The playback must end after the c...