Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

alnite

does anybody else here have successfully play ogg?

This topic is 5274 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

using VC6? I can''t even get the ov_open() right. I passed the right parameters, and that function seems to be attempting writing to some invalid memory address. As a result, I got an access violation exception. I can''t do anything else since the error occurs in ov_open(). I asked this in the ogg-vorbis mailing list and so far haven''t got the correct answer. It seems like, there is a bug in the library, but if there is, how come other programs can play it? and I can''t even open it! I am lost.

Share this post


Link to post
Share on other sites
Advertisement
You did allocate the OggVorbis_File* structure on the stack/heap right? As well as fopen-ed a File* right?

Share this post


Link to post
Share on other sites
no, he is right. IIRC, you need the static ogg libraries, a lot of people have had this problem, including me. it was a while ago though, i can''t remember if thats how i fixed it or not. its definitely fiddling with the ogg libraries or C++ runtimes.

Share this post


Link to post
Share on other sites
As was hinted at, make sure you''re using the same C runtime as the Ogg and Vorbis libraries (the multithreaded ones) or linking to them statically. That is an extremely common problem run into with MSVC.

Also, if you''re using the function that takes a FILE pointer, make sure you''re passing a file that was opened in binary mode (which is not the default in Windows but is the default almost everywhere else, so not every example makes sure to do that).

Share this post


Link to post
Share on other sites
Yes, I have set it to Multithreaded. FILE in binary mode. billybob has the best solution, use the static library. thanks!

yay! my streaming ogg player is now working!

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!