[Solved]createSound and streaming

samsaga2

22-01-2009 11:42:22

There is a problem with stream on the last version of the library.

mMusic = mSoundManager->createSound("music", filename, true);
if(mMusic != NULL)
mMusic->play();


It seems to crash because on the OgreOggSoundManager::createSound function soundData is NULL if stream is true. Then calling OgreOggStreamSound::open.

if((result = ov_open_callbacks(&mAudioStream, &mOggStream, NULL, 0, mOggCallbacks)) < 0)
{
throw string("Could not open Ogg stream. ");
return;
}

crash because mAudioStream is NULL (the previous soundData variable).

Any solution?

stickymango

26-01-2009 15:24:02

Hi there,

sorry about the late reply, been on holiday for a week!

I'll try to check this out asap, are you using the library via the plugin interface or by linking to the dll?

stickymango

26-01-2009 19:55:17

Hi,

Right had a look at this and indeed there was a bug which I've now fixed I think :)

Try the latest SVN and let me know...

Thanks.