Skip to content

Commit

Permalink
Run ClangFormat on all code files
Browse files Browse the repository at this point in the history
  • Loading branch information
heraldofgargos committed Jun 27, 2019
1 parent ae4dae3 commit 8aef537
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions godot_fmod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void Fmod::updateInstance3DAttributes(FMOD::Studio::EventInstance *instance, Obj
Transform2D t2d = ci->get_transform();
Vector2 posVector = t2d.get_origin() / distanceScale;
// in 2D, the distance is measured in pixels
// TODO: Revise the set3DAttributes call. In 2D, the emitters must directly face the listener.
// TODO: Revise the set3DAttributes call. In 2D, the emitters must directly face the listener.
Vector3 pos(posVector.x, 0.0f, posVector.y),
up(0, 1, 0), forward(0, 0, 1), vel(0, 0, 0); // TODO: add doppler
FMOD_3D_ATTRIBUTES attr = get3DAttributes(toFmodVector(pos), toFmodVector(up), toFmodVector(forward), toFmodVector(vel));
Expand Down Expand Up @@ -121,7 +121,7 @@ void Fmod::setListenerAttributes() {
Vector2 posVector = t2d.get_origin() / distanceScale;
// in 2D, the distance is measured in pixels
// TODO: Revise the set3DAttributes call. In 2D, the listener must be a few units away from
// the emitters (or the screen) and must face them directly.
// the emitters (or the screen) and must face them directly.
Vector3 pos(posVector.x, 0.0f, posVector.y),
up(0, 1, 0), forward(0, 0, 1), vel(0, 0, 0); // TODO: add doppler
FMOD_3D_ATTRIBUTES attr = get3DAttributes(toFmodVector(pos), toFmodVector(up), toFmodVector(forward), toFmodVector(vel));
Expand Down

0 comments on commit 8aef537

Please sign in to comment.