Android Question Continuous tone generator?

robertyoungs

Member
Licensed User
Longtime User
I've tried the media player, soundpool and beep to create a continuous tone without a break, but when looping, there is a short break in the tone - I've hunted high and low and can't seem to find a clean way of doing it, so any ideas would be gratefully appreciated!

I'm generating this tone to then feed back to the mic input via a switch that I then detect with audio streamer - effectively having a wired switch in that I can then subsequently detect timed switch events, but I keep picking up the break in the tone. I've given up using intents (as I note others have) to detect headset switchs, so again would appreciate if anyone has any ideas other than the above!
 

robertyoungs

Member
Licensed User
Longtime User
Thanks Erel, Works well, set SoundPool to 2 samples interleaved with a timer as you suggest. Interestingly, no detectable difference in Vol when one breaks while other playing

Rob
 
Upvote 0
Top