diff --git a/AudioEmitter.md b/AudioEmitter.md index 7e0bb8e..3d3a252 100644 --- a/AudioEmitter.md +++ b/AudioEmitter.md @@ -80,10 +80,11 @@ The AudioEmitter constructor sets pVolumeCurve, pLFECurve, pLPFDirectCurve, pLPF ```cpp float dt = static_cast(timer.GetElapsedSeconds()); -emitter.Update(position, Vector3::Up, dt); +emitter.Update(soundPosition, Vector3::Up, dt); +listener.Update(playerPosiiton, Vector3::Up, dt); if (soundSource) { - soundSource->Apply3D(m_listener, emitter); + soundSource->Apply3D(listener, emitter); } ```