samsaga2
22-01-2009 11:42:22
There is a problem with stream on the last version of the library.
It seems to crash because on the OgreOggSoundManager::createSound function soundData is NULL if stream is true. Then calling OgreOggStreamSound::open.
crash because mAudioStream is NULL (the previous soundData variable).
Any solution?
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?