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 10-27-2005, 05:08 PM   #1
dicksan
New Member
 
Join Date: Oct 2005
Posts: 12
Default Audio engine Class structure heirachy

Hi
Im making an audio engine, and i need some help to determine how to arrange the base classes. I want to use an abstracted base layer with openal and directsound in C++. Can anyone point me to any engine / api's with a similar structure or can you suggest a new one for me to use? Or can someone give me a tutorial on how to design generic audio engine base classes that i can expand on.

Thanks
dicksan is offline   Reply With Quote
Old 10-27-2005, 06:41 PM   #2
SpreeTree
Valued Member
 
SpreeTree's Avatar
 
Join Date: Jan 2004
Location: England
Posts: 265
Default Re: Audio engine Class structure heirachy

It might be a bit rude pointing someone to another forum, but this was discussed very recently over on GameDev.net. Some nice diagrams should give you a good idea on what you might want to produce.

Heres the link http://www.gamedev.net/community/for...age=1&#2312360

Spree
SpreeTree is offline   Reply With Quote
Old 10-28-2005, 08:01 AM   #3
dicksan
New Member
 
Join Date: Oct 2005
Posts: 12
Default Re: Audio engine Class structure heirachy

Thats helped a lot thanks.

How could I go about creating an abstracted cross library api, so that i can implement all functionality in both openAL and directX?

cheers
dicksan is offline   Reply With Quote
Old 11-05-2005, 08:27 AM   #4
SpreeTree
Valued Member
 
SpreeTree's Avatar
 
Join Date: Jan 2004
Location: England
Posts: 265
Default Re: Audio engine Class structure heirachy

Quote:
Originally Posted by dicksan
How could I go about creating an abstracted cross library api, so that i can implement all functionality in both openAL and directX?

Thats a hugh question, and one with many different answers. Firstly you need to investigate abstract classes, so that you can create API specific classes (transparently to the user).

You then need to investigate the use of dll's to allow the user to switch between different API's. But, if you don't want to allow for that, you could investigate just using static libraries, but that isn't as flexible.

If you want to look into this more, there are many tutorials across the internet (GameDev.net has some), but it is a big thing to get into.

Spree
SpreeTree is offline   Reply With Quote
Old 11-05-2005, 08:51 AM   #5
bladder
DevMaster Staff
 
bladder's Avatar
 
Join Date: Sep 2003
Location: Hell
Posts: 1,109
Default Re: Audio engine Class structure heirachy

There's a very simple a straight forward tutorial over here:

http://triplebuffer.devmaster.net/poc/framework2.php

Dwnload the Plugin manager and go through the code, everything's commented (I think).
___________________________________________
- TripleBuffer
- Me blog
bladder is offline   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 05:14 AM.


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