Generate tone of a specific frequency
To play a sound of with a specific tone,we first have to create a sine wave sound.This is done in the following way.
Now we have to configure AudioTrack to play in accordance with the generated buffer . It is done in the following manner
Write the generated buffer and play the track
Hope this helps :)
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0