search for: oggvorbis_fil

Displaying 20 results from an estimated 71 matches for "oggvorbis_fil".

Did you mean: oggvorbis_file
2004 Sep 07
3
Introducing ov_open_callbacksp and ov_clearp
Hello, I've been looking to the libvorbisfile and got into troubles when trying to use it: I need to compile it on a PalmOS and the libvorbisfile must be compiled in ARM whereas calling code is in 68K. This implies that the interface ov_open_callback is not usable because the OggVorbis_File *vf must point to something in the target architecture (ARM) whereas the caller cannot do that. As well as for this I 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 modi...
2004 Feb 09
3
Problem with 'ov_open'...
...he 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. FILE *SoundFile; OggVorbis_File *OVFile; if(SoundFile != NULL) CloseOGG(); if((SoundFile = fopen(Filename, "rb")) == NULL) return false; if((ov_open(SoundFile, OVFile, NULL, 0)) < 0) return false; I've put debug messages that my log-class logs, and it logs everything just fine up to the ov_open() check...
2006 Jun 14
1
Having problems with ov_read
Ok here is the breakdown. I am trying to impliment streaming into our game using openAL and ogg-vorbis. In the non-streaming function when I call ov_read on the file I should be streaming the buffer gets filled with the correct data. However, when I run ov_read on the same OggVorbis_File when I read the buffer gets filled with 0's. The buffer has not been zero'd and starts filled with chode. I even went as far as ignoring the OggVorbis_File I create in a previous function, pass the FILE* myself and call the ov_open function locally. Still ov_open returns 0 indicatin...
2002 Jul 20
1
small mistake in docs
Hi, in ov_read_float.html there is a small mistake: long ov_read(OggVorbis_File *vf, float ***pcm_channels, int *bitstream); hould read: long ov_read_float(OggVorbis_File *vf, float ***pcm_channels, int samples, int *bitstream); It seems this function has been changed (compared to the RC3). Anything else worked fine for me with the 1.0 release. Olaf <p>--- >8 -...
2005 May 23
1
Why does ov_open fail?
hello everyone. after reading through the api manual of the ogg vorbis win32 sdk, i tried to implement 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), s...
2005 Jun 14
3
lack of detail for exception in ov_open
...ving 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 appreciated. "Unhandled exception in Room 101.exe (NTDLL.DLL): 0xC0000005: Access Violation." OggVorbis_File vf; FILE* pFile; pFile = fopen("test.ogg", "rb"); if(!pFile) AfxMessageBox("fopen failed"); // here's where I get the exception int err = ov_open(pFile, &vf, NULL, 0); debugger simply says: NTDLL! 7c918fea() NTDLL! 7c90104b() MSVCRT! 77c413b0() VOR...
2001 Nov 11
1
Reading tags (again)...
...ble to figure out how to write them. Here's the code that I'm using. It's a fine C/C++ mix. The code will eventually be in a C++ app, so I don't mind throwing in some C++'isms. === #include <iostream.h> #include <vorbis/vorbisfile.h> int main() { FILE *fp; OggVorbis_File *ovFile; vorbis_comment *ovComment; // ovFile=malloc(sizeof(OggVorbis_File)); ovFile=new OggVorbis_File; fp=fopen("foo.ogg","rw"); ov_open(fp,ovFile,NULL,0); ovComment=ov_comment(ovFile,-1); if(ovComment->user_comments) { printf("has commen...
2004 Feb 11
1
Problem using 'ov_open()'...
....h> typedef struct tagSOUNDDATA { char *Buffer; int Channels, Length, Frequency; } sSOUNDDATA, *pSOUNDDATA; class OGGDATA { public: 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); i...
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 w...
2001 May 11
2
Application Crashes When Calling ov_time_seek() function
I’m running into a problem with my application crashing when I make a call to the ov_time_seek() function. The call includes the OggVorbis_File and it is indeed seekable, as I first check that using the ov_seekable() function. Everytime, however I try to seek forward, the application dies with a core dump. I’m working with the example from the “VorbisFile Documentation” site. The application is compiled using gcc version 2.96 20000731...
2003 Jul 27
2
Ogg ouput using libvorbisfile
...atic noise. Any idea what I'm doing wrong or not doing? <code> #include <stdio.h> #include <stdlib.h> #include <math.h> #include "vorbis/codec.h" #include "vorbis/vorbisfile.h" char pcmout[4096]; int main() { FILE * input; FILE * dspdev; OggVorbis_File *vf; int eof=0; int current_section; /* Opening File */ if ((input = fopen("sound.ogg", "r")) == NULL) fprintf(stderr, "Cannot open %s\n", "sound.ogg"); /* Opening /dev/dsp for writing*/ dspdev=fopen("/dev/dsp","w");...
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(argc < 2) { fprintf(stderr, "usage: %s <file.ogg>\n", argv[0]); return -1; } file = argv[2];...
2003 Sep 14
6
ov_clear(&vorbis) segfaults?
...ase 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, -1)) == NULL) error(); if((availible_chunks[tint]->len = ov_pcm_total(&vorbis, -1)) == OV_EINVAL) error(); while((tulong = ov_read(&vorbis, tuint8p, 4096, endian, 2, 1,...
2006 Aug 29
3
How can I seek in Ogg Vorbis file, but not using Vorbisfile library?
Hello, All. I am making an Ogg Vorbis decoder based on Tremor. The Vorbisfile library provides a high-level API which enables us to seek in the file, but it needs to declare a pointer to OggVorbis_File structure. Because I am supposed not to use file, so I can't use the ov_pcm_seek() or ov_raw_seek() functions to seek in the file. For decoding an Ogg Vorbis file, I first put it in a buffer, then use API provided by libogg and libvorbis to decode it, and put the PCM in ouput buffer....
2005 Apr 03
3
Direct crash on ov_open
...pp is simple: #include "vorbis/codec.h" #include "vorbis/vorbisfile.h" #include <stdio.h> #include <memory.h> void main(void) { // Attempt to open the file FILE *pFile = NULL; pFile = fopen("C:\\IronDaimen.ogg","rb"); if (!pFile) return; OggVorbis_File ovFile; memset(&ovFile,0,sizeof(ovFile)); int iRetval = 0; iRetval = ov_open(pFile,&ovFile,NULL,0); if (iRetval != 0) { fclose(pFile); return; } } I link against the ogg/vorbis DLLs (tried both debug and release ones). This is really very frustrating... I tried several other f...
2002 Feb 12
2
problem with Vorbis DLL's
...is libraries via LoadLibrary on Win32. I'm able to use things properly by linking in the static libraries, but when I try to load them dynamically (which I really need to do), I get an access violation when calling ov_open. The code looks something like this... typedef int (*OVOPEN)(FILE*,OggVorbis_File*,char*,long); HMODULE hVorbisFile; OVOPEN hOvOpen; hVorbisFile = LoadLibrary(_T("Vorbisfile.DLL")); hOvOpen = (OVOPEN)GetProcAddress(hVorbisFile, _T("ov_open")); printf(filename, "music\\Track%02d.OGG", track_number); vorbis_fd = fopen(filename, _T("rb&...
2001 Jan 03
1
Use of const
...onst keyword, though there are plenty of places it would > probably be good to use. Because the source files are C and not C++, parameter types aren't checked, so is the use of const really a good idea? For example, this compiles fine (on VC++ 6), but itsn't right: int ov_open(FILE *f,OggVorbis_File *vf,const char *initial,long ibytes){ ov_callbacks callbacks = { (size_t (*)(void *, size_t, size_t, void *)) fread, (int (*)(void *, ogg_int64_t, int)) _fseek64_wrap, (int (*)(void *)) fclose, (long (*)(void *))...
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 8...
2002 Jul 23
1
[BUG] libvorbisfile ov_test() ?
The folowing code donst work: #include <vorbis/codec.h> #include <vorbis/vorbisfile.h> #include <stdlib.h> #include <stdio.h> int main() { FILE *stdfile; OggVorbis_File vf; int tmp; stdfile=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\...
1999 Nov 13
1
XMMS plugin update
...inning of a logical bitstream) won't affect the plugin, but if you see it when debugging, don't be alarmed as I'll fix it soon. The third is that the vorbisfile lib is not thread safe. That doesn't affect things yet, but seeking will likely involve async access/manipulation of the OggVorbis_File struct. We need to decide if threadsafing vorbisfile.a is the right thing to do (it'll be annoying to apps that aren't threaded) or if locking things in the XMMS plugin is the right thing to do (the threading synchronization system in XMMS is suboptimal for this. Spinlocks with waits woul...