Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade phonon to v4 #474

Open
bjornbytes opened this issue Aug 16, 2021 · 1 comment
Open

Upgrade phonon to v4 #474

bjornbytes opened this issue Aug 16, 2021 · 1 comment

Comments

@bjornbytes
Copy link
Owner

Happening on phonon-v4 branch.

@bjornbytes
Copy link
Owner Author

bjornbytes commented Aug 16, 2021

phonon significantly restructured the way sources are processed during spatialization. Basically they all get processed in a batch now instead of individually.

  • Sources are created and can be added/removed from a "simulator".
  • Every audio frame, you set the inputs for each source (transform, effects, settings, etc.). Note that the inputs do not include audio buffers.
  • Then you call iplSimulatorRunDirect or iplSimulatorRunReflections which processes all sources attached to the simulator.
  • Then you retrieve outputs for each source, which has all the attenuation values, and reverb info.
  • These outputs get fed to "effects" which do the actual mixing.

It's a bit different than LÖVR's current spatializer structure, which processes sources one at a time (plus the "tail" for reverb). There may be an opportunity to change the API to process things in a batch, which would match phonon better and might allow for reduced overhead. Not sure what it would look like yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant