Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: memory leaks and movie end error  (Read 1210 times)

ahmedismaiel

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 1
    • View Profile
memory leaks and movie end error
« on: March 17, 2006, 03:43:43 AM »

Hi,
i'm havving a problem with the class soundmanager in CEGUI_TheoraDemo because it loads the dlls of openalmod ,fmod . and never release them .what code should include in the destructor to unload and destroy these objects correctly?

the other error is the end of movie event is send multiple times before the movies is finished,if the sound finished before the video does it raise this event?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
memory leaks and movie end error
« Reply #1 on: March 17, 2006, 08:49:49 AM »

MovieLogic class does indeed unload the dll's in its contructor via the call to SoundManager::unloadSoundModules(); Though, maybe you have an extremely old version? And recent version (last few months) should include that call.

What OS/Compiler?

There are a few events:
Code: [Select]

//Signal that movie reached end of ogg stream, still playing though
TH_OggStreamDone = 0,
//No more vorbis packets for decoding.. buffered audio still present
TH_VorbisStreamDone,
//No more theora packets found in the stream.
TH_TheoraStreamDone,
//The movie is no longer playing
TH_EndOfMovie

TH_EndOfMovie should only be called one time. The others could be sent multiple times.
Logged