simple try


13-09-2010 21:16:33

ok hi,
well, just compiled the library (or at least i think so)
then tryied it, this is the code i added to the standart ogre app:

OgreAL::SoundManager *sndMgr = OgreAL::SoundManager::getSingletonPtr();
OgreAL::Sound *snd = sndMgr->createSound("roar", "roar.wav", true);

i got an error on the OgreAL::Sound *snd = sndMgr->createSound("roar", "roar.wav", true);
any idea what could it be ? if you need any more information, just let me know



17-09-2010 10:59:39

What's the error?


19-09-2010 14:34:37

well, when compiling the proyect works fine.
then when executing it, i get on of those 'Don't Send' windows error messages.
and if i debug it, it says:

Unhandled exception at 0x0043d8b9 in OgreAL_again.exe: 0xC0000005: Access violation reading location 0x00000000.
in the same line i mentioned above.


14-10-2010 12:56:32

any help plz :V ?


15-10-2010 23:00:38

Stacktrace please.


17-10-2010 16:01:11

I am going to take a stab in the dark here and bet you never called:

new OgreAL::SoundManager();

This needs to be called before you do anything with OgreAL. I don't think the singleton implementation in OgreAL creates the SoundManager object automatically on the first call of OgreAL::SoundManager::getSingletonPtr(). If I am wrong, then a stack trace will help us to diagnose your problem.