2017-01-06 2 views
0

내가 docsFMOD :: 스튜디오 :: 시스템 :: setListenerAttributes()를 호출 일치 기능 없음

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

답변

1

나는 나의 청취자의 인덱스를 설정하는 것을 잊었다