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

How often can the frequency be updated per second? #18

Open
gordogato81 opened this issue Oct 22, 2022 · 1 comment
Open

How often can the frequency be updated per second? #18

gordogato81 opened this issue Oct 22, 2022 · 1 comment

Comments

@gordogato81
Copy link

I have been experimenting with using the sound generator to tonally represent G-forces using the userAccelerometer from the motion_sensors package. Through these experiments, I have noticed that the sound generator does not update the frequency of the wave more than about 5 times a second (5hz).

Is it possible to increase this update rate?
Ideally, I would like an update rate of about 30hz.

I apologize if this is the wrong place for this question. If so, please point me to the right place.

@si-gr
Copy link

si-gr commented Feb 26, 2023

Take a look at the AudioTrack.Builder. I changed the SoundGenerator a little bit and now have an instantly changing sound generator: si-gr@beab4ec

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