对于iPhone开发,有没有办法只在Fmod中设置距离参数?我可以在Fmod Designer中设置3D Max och Min Distance。我只想使用距离特征,而不是Fmod中的角度特征。
在下面的代码中,我将听众的位置添加到声音中,但我只想添加听众和声音之间的距离:
listenerpos.y = (float)33.0f * DISTANCEFACTOR;
result = system->set3DListenerAttributes(0, &listenerpos, &vel, &forward, &up);发布于 2011-07-01 08:39:42
如果您不想更新System::set3DListenerAttributes的任何特定参数,只需传入0或NULL即可。
system->set3DListenerAttributes(0, &listenerpos, NULL, NULL, NULL);https://stackoverflow.com/questions/6531780
复制相似问题