没有用于调用 FMOD::Studio::System::setListenerAttributes() 的匹配函数

no matching function for call to FMOD::Studio::System::setListenerAttributes()

我正在尝试按照 docs

中所述设置听者的位置
FMOD::Studio::System* system;
ERRCHECK(FMOD::Studio::System::create(&system));
FMOD::System* lowLevelSystem;
ERRCHECK(system->getLowLevelSystem(&lowLevelSystem));

FMOD_3D_ATTRIBUTES attributes = { { 0 } }; 
attributes.forward.z = 1.0f;
attributes.up.y = 1.0f;
ERRCHECK( system->setListenerAttributes(&attributes) );
attributes.position.z = 0.0f;
ERRCHECK( instance->set3DAttributes(&attributes) );

但是它说:

test.cpp: In function ‘int main(int, char**)’:
test.cpp:244:56: error: no matching function for call to ‘FMOD::Studio::System::setListenerAttributes(FMOD_3D_ATTRIBUTES*)’
     ERRCHECK( system->setListenerAttributes(&attributes) );
                                                        ^

为什么?

我忘了设置我的监听器的索引:

ERRCHECK(system->setListenerAttributes(0, &attributes));