0
0

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.

[code:qj6t28zn]

      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
    );

[/code:qj6t28zn]

I loaded the .fev file.

[code:qj6t28zn]
m_pSystem->set3DSettings(1.0f,1.0f,1.0f);
[/code:qj6t28zn]

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.

  • You must to post comments
0
0

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?

  • You must to post comments
0
0

You should be able to determine whether the cone problem is in the source media or the code by loading your project into EventPlayer and testing it there. That should isolate the problem so that it is easier to track down what went wrong.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.