2017-01-06 7 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)); 
                 ^

なぜですか?

答えて

1

私は、リスナーのインデックスを設定するのを忘れ:

ERRCHECK(system->setListenerAttributes(0, &attributes)); 
関連する問題