I integrated fmod into our game engine. I got music system, categories, reverberation & 3D sound positioning( fixed in a position ) to work 😀 . But when i try to move the 3d sound object in the scene, i cannot hear the sound of moving object( i don’t hear anything ). 😥 I am aware of the fact that i need to update fmod with EventSystem::update() function every frame and i did the same. But still i cannot hear it. I also don’t get any error in function return values.
FMOD::EventSystem_Create( &m_pEventSystem ); this->m_pEventSystem->getSystemObject( &m_pSystem ); m_pSystem->getDriverCaps(0, 0, 0, &m_speakermode ); m_pSystem->setSpeakerMode( FMOD_SPEAKERMODE_STEREO ); m_pEventSystem->init( 1024, FMOD_INIT_NORMAL | FMOD_INIT_3D_RIGHTHANDED , 0, FMOD_EVENT_INIT_NORMAL );
I loaded the .fev file.
I used set3DAttributes function to update the source information and set3DListenerattributes function to update the listener information. And Also 3D cone setting doesn’t seem to work. No-matter whatever i specify in the fmod designer for the cone setting, it just ignores and it defines the cone in about 150 degrees facing the orientation which i specified. I followed the documentation & example codes and still may be i missed something. Any reply to resolve the issue would be appreciated.
- shyamsoundprog asked 6 years ago
i figured out myself the problem that i came across. It is because getGroupByIndex & getEventByIndex was called more than once in the code for moving objects. FMOD doesn’t give any error but we cannot hear the sound. I just made sure that i called these function only once. It solved the problem for moving sound object. Still i was not able to figure out the problem with 3d cone settings.
Did anyone came across same problem with 3d cone settings?
- shyamsoundprog answered 6 years ago
Please login first to submit.