DevMaster.net Forums
[[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]]

Go Back   DevMaster.net Forums > Programming & Development > Sound and Music Programming
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 04-13-2005, 08:36 PM   #1
IceFire
New Member
 
Join Date: Apr 2005
Posts: 1
Thumbs up

Hello, I'm currently in the process of building a OGG streaming engine for my OpenGL game. I've looked and messed around with the Tutorial 8 program, trying to implement it into C++ GL, but to my dismay I came to realize that the Vorbis DLLs are built from C code, and call the LIBC library, which affects my using it in C++. I was just wondering if there's a way I could somehow get around that, without having to dig into the libraries and dlls to change stuff. I've tried rebuilding the DLLs as C++ builds, but it seems there's a struct or something named class, which isn't legal C++ code, and I don't even dare touch it.

Anyhow, I'd be grateful to anybody who could offer me some help with this. I've been fussing over it for a while now, and I'm beginning to think I should just dump it all and move on to SDL or FMOD haha

Thanks,
IceFire
IceFire is offline   Reply With Quote
Old 04-13-2005, 09:20 PM   #2
Reedbeta
DevMaster Staff
 
Join Date: Oct 2004
Location: Seattle, WA
Posts: 3,709
Default

The DLLs using a different library shouldn't cause any problems. There might be a problem including a C header file into a C++ program due to name mangling, but that can be solved by placing extern "C" around the header. EG:
Code:
extern "C" { #include "ogg.h" }
___________________________________________
Currently working at Sucker Punch
reedbeta.com - OpenGL demos and other projects
Luabridge - a lightweight, dependency-free C++/Lua binding library.
CD Lite - an unobtrusive, minimal CD player application for Windows.
Reedbeta is online now   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump


All times are GMT -7. The time now is 12:47 PM.


Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.