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

Remove Floating Point Arithmetic #14

Open
deltabeard opened this issue Jun 28, 2019 · 2 comments
Open

Remove Floating Point Arithmetic #14

deltabeard opened this issue Jun 28, 2019 · 2 comments

Comments

@deltabeard
Copy link
Owner

I want to support the ESP32 platform, which does use a Floating Point Unit (FPU), but it's very slow. It would be beneficial to therefore replace with integer arithmetic, for embedded systems with no or poor FPUs.

It would not make sense for floating point arithmetic to remain as an alternative, as integer arithmetic will be the same speed or faster on all platforms as far as I know (unless the audio driver wants samples in float format).

@deltabeard
Copy link
Owner Author

Probably won't be possible (within reason) to remove all floating point arithmetic, but if any unnecessary use of floats could be changed, that would be good enough.

@clort81
Copy link

clort81 commented Jul 9, 2022

I didn't want to create an issue just to say thank you! This is very interesting to me (designing my own effects and music for a little game project).
This is still an order of magnitude more complex than what I've written (square/pulse waves to alsa) but it is very helpful for me to study.
Thanks again!

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

No branches or pull requests

2 participants