Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Some changes in Cvs Head...  (Read 1400 times)

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Some changes in Cvs Head...
« on: December 12, 2005, 06:46:24 PM »

Besides the audio plugin added to the demo (talked about in other thread of course)

I have been working on the OpenAL plugin.. Unlike Fmod, openAL you have to actively poll and then update the source buffers. Well, that is easy enough, and Ogre has had a feature for creating something that is called every frame (frameListeners).. Now, they work fine for updating the buffers.. The problem lays with removing the frame listener. Many Ogre apps (at least all the demos) use framelisteners. And, in my CEGUI demo, it too uses framelistners too. This presents a problem when the user pushes stop (or any event triggered by a framelistener - as I think Ogre input is) and then you remove a framelistener while Ogre was pushing out events... Or you delete a class that was once a framelistener (even though you just removed it from Ogre), Ogre may still be iterating over FrameListeners.. Anyway, this can cause problems.

So, to address this, I am/have added a method to TheoraVideoCOntroller class - setAutoAudioUpdate( bool ). THe default setting is false - the behavior that the plugin did before. However, no, when you set that to true before creating your movie, the TheoraAudioDriver you set will now be called internally in the MovieClip's update method via an overidable autoUpdate() method of TheoraAudioDriver.

This change will be committed soon once I test it a little more.
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Some changes in Cvs Head...
« Reply #1 on: December 12, 2005, 07:22:21 PM »

Ok, this is now committed to Cvs.. Anonymous CVS will see the changes after a few hours. This fixes the openAL crash bug. I also fixed the fact that you could not get frame stats unless you gave the plugin a AudioDriver class.. Now, non audio clips can get frame stats (Timing stats and what not).
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Some changes in Cvs Head...
« Reply #2 on: December 14, 2005, 12:52:45 PM »

I've fied a couple of memory leaks in the Demo.. Gosh, the exampleframe work is some dirty stuff :D ... I should have not just taken the CEGUI demo that I took so long ago. I should have actually made my own (without use of ExampleApplication framework). But oh well, I do not care for rewriting a demo app that works.

Anyway, I know I said I was moving onto OIS again; however, there is one last thing I want to add to the demo first - since several users have had trouble... I plan on adding some CEGUI check boxes which will put the texture on different Objects: pariticles, overlay, and a Mesh of some sort.
Logged