Open rednebmas opened 7 years ago
Hi @rednebmas did you manage to resolve the issue? I'm facing same problem, tried to play with buffer length, overlap etc. but nothing works for me.
Inside SineGenerator.java
change
buffer[i] += (float) (gain * Math.sin(twoPiF * time + phase));
to
buffer[i] = (float) (gain * Math.sin(twoPiF * time + phase));
When I run the following code, the output sounds garbled, even though it should be a simple sine wave. This occurs on both the simulator and a device. Am I missing something basic, or this a bug? Or a configuration issue?
I also tried running the generator on a new thread and that did not work either.