Advertisement

Openal an oggVorbis files

Started by November 04, 2004 04:18 AM
0 comments, last by Ilici 20 years, 3 months ago
Hi, I want to play a ogg vorbis files with openal but i have a problem. The function ov_open make an error when i call it. CODE OggVorbis_File vf; FILE *f; f = fopen("boom.ogg", "rb"); if (f == NULL) { cerr << "Cannot open for reading..." << endl; exit(-1); } if(ov_open(f, &vf, NULL, 0) < 0) { fprintf(stderr,"Input does not appear to be an Ogg bitstream.\n"); exit(1); } std::cout << "Ov_open done\n"; i haven't any message write on stdin but i have a windows error. I don't understand why so if somebody can help me it's good. Thanks
I have the same problem, i get an error in NTDLL which i can't debug.

I've managed to get it working by loading the file into memory and using callbacks for reading, seeking, closing using ov_open_callbacks. I've ripped a lot off this tutorial.

This topic is closed to new replies.

Advertisement