c++ - problem with Fmod wrapper (soundManager) for Ogre3d -
For fmod in Ogre 3D engine, I have a problem with the sound administrator (class). Here's just the code:
ISoundManager.hIf someone wants me to upload it but I can not upload more than 2 hyperlinks now. SoundManager.h
I have a simple code piece to play sound:
` SoundManager * soundManagerPtr = new SoundManager; SoundManagerPtr- & gt; Start (); Int mySound1 = soundManagerPtr- & gt; CreateStream (Ogre :: String ("boing.wav")); Int channel 1 = 0; SoundManager- gt; Place (mySound1, headNode, and channel1); Sound managerpat; Correcting ` , everything is fine, the sound is loading, but the PlaySound () function does not throws any errors and does not play sound even on the Ogre 3D forum Was asking, but no solution yet.
I believe the sound manager needs to update and this is the frame starred () it means that you have started to start your ogre app to start the game to start the sound; root-> gt; StartRendering (); . Have you tried The above code is either incomplete (in that case you really have a problem) or you just have to get the update of the sound manager so that the graphics can be started to render and thus the soundtrack of the soundtrack can be called.
Comments
Post a Comment