Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: CEGUI Audio Plugin's  (Read 2582 times)

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
CEGUI Audio Plugin's
« on: December 09, 2005, 06:18:56 PM »

I've made some progress on implementing an audio plugin system for the CEGUI demo.. This way, multiple audio systems can be compiled at the same time and tested via a CEGUI runtime selection menu. I should be updating cvs this weekend.

Currently though, I only have the Base SoundManager and Dynamic Lib loading code done. Next step is to actually make the seperate sound dll's. Shouldn't take to long - just a matter of setting up the project files.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
CEGUI Audio Plugin's
« Reply #1 on: December 09, 2005, 09:26:41 PM »

Ok, well, I've managed to throw the Fmod audio into a plugin lib (and it works like a champ!) :D .. Now, I just need to tweak a few more things and then add the OpenAL (updated) code into an openAL audio module dll. Perhaps more audio modules can be written and added to the list eventually.
Logged

M&M

  • Regular
  • *
  • Karma: +0/-0
  • Posts: 30
    • View Profile
    • http://www.blueprintgames.com
CEGUI Audio Plugin's
« Reply #2 on: December 10, 2005, 09:52:46 AM »

well, I already have an audio subsystem for my project (using openal). Would I have to mesh it in with the plugin or what exactly ?
Logged
url=http://www.blueprintgames.com/][/url]

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
CEGUI Audio Plugin's
« Reply #3 on: December 10, 2005, 09:56:41 AM »

This is part of the CEGUI demo as has no bearing on your app at all. It does not change the interface of the Plugin.

A little update:
I've updated tagged cvs prior to updating to alpha, so those not wanting this can check out "alpha" ogreaddons/videoplugin/CEGUI_TheoraDemo version you will get the old one. CVS Head now contains (and is unstable because of) the new Audio Plugin System.. I still need to tweak some settings and update the linux build system.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
CEGUI Audio Plugin's
« Reply #4 on: December 10, 2005, 12:23:41 PM »

Ok, CVS head the CEGUI demo now supports loading/unloading different modules at runtime. I still need to work on the selection higlite of the listboxes, but, trust me, when you click on it, it is highlited :D.

Also, The OpenAL code has a nasty crash when unloading a clip.. I think it might be related to using a framelistener there.. I'll have to investigate further. And, I also noticed horrible stuttering when using openAL, perhaps I need to up it's buffer size - something else to look into.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
CEGUI Audio Plugin's
« Reply #5 on: December 12, 2005, 01:05:07 PM »

I have just commited the new Linux build environment so now Linux users can also try out the new plugin based audio system.. Currently only though, Fmod builds.. I promise I will get openAL working on linux here too (just give me a day or so :D ). It installs the Fmod Sound module (named FMOD_MOD.so) to /usr/local/lib where it should be easily found and opened with Ogre's dynlib load stuff - works great here. If it does not work for you, you need to add that path to where so's can be found on your system (I'm not a linux export - LD_LIB_PATH? or something)) or edit the makefile.

Next on the agenda is to get OpenAL working on Linux and not crashing anymore on windows.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
CEGUI Audio Plugin's
« Reply #6 on: December 12, 2005, 02:46:38 PM »

OpenAL now works (better then the windows counterpart) on Linux!

Only thing i have left to do on that is fix a crash with openAL on Windows.. and make the configure scripts on Linux gracefully find/build the Fmod and/or OpenAL modules depending on if it can find fmod lib/openal libs.
Logged