deshan
17-12-2009 03:50:21
Hi
This may be a very simple question for u, but i have just started using OgreOggSound for our project.
Since i have go through all the posts in the forum and question not yet arised.
When using background music do i need to continously play the music in update method.
like following
Since this is ok to me. But do i really need to do this? Are there any other way of doing this?
This may be a very simple question for u, but i have just started using OgreOggSound for our project.
Since i have go through all the posts in the forum and question not yet arised.
When using background music do i need to continously play the music in update method.
like following
void update(elapsedTime)
{
mSoundManager->update(elapsedTime);
backgroundMusic->play();
}
Since this is ok to me. But do i really need to do this? Are there any other way of doing this?