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

white noise unexpected sound when playing the files #58

Open
cyrax50000 opened this issue Apr 20, 2021 · 2 comments
Open

white noise unexpected sound when playing the files #58

cyrax50000 opened this issue Apr 20, 2021 · 2 comments

Comments

@cyrax50000
Copy link

Hello!

Thanks for this interesting library. It's really compact and for sure can be used in many projects.
I had some strange problem when trying to run the examples on my old tv box, an allwinner a10 armhf system.
The example1 works fine there.
examples 2 and 3 do play the notes, but also some quite loud white noise plays in the background.
I have also tried to use the tinysoundfont implementation from esp8266audio and got a similar problem there. A background whooshing sound goes together with every note played.
On a regular x86_64 system it works perfectly.
Any hints to solve this? thanks again...

@kode54
Copy link

kode54 commented Apr 20, 2021

You may note that example1 outputs in signed integer 16 bit, while examples 2 and 3 output in floating point 32 bit, which your device may not handle properly.

@cyrax50000
Copy link
Author

Hello,
Thanks for the reply. You were right, I have used tsf_render_short instead of float and now it's working.
Have you seen the ESP library? There, they seem to be using some modified version of tsf_render_short already, so I can't see why a similar problem happens.

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