There are no APIs in Android to generate tones at arbitrary frequencies.

Presumably, there are algorithms you could use for creating PCM data
representing a tone, which you would play back via AudioTrack.

On Thu, Mar 8, 2012 at 9:25 AM, Jordan Thompson <[email protected]> wrote:
> Hi there,
> I know that this (seems) to have been discussed on many boards, but I have
> not found my answer wherever I have looked.
> I want to be able to generate a tone when I click down and stop when I
> release a button.  I want to be able to set the frequency before clicking.
>
> Everything I have found so far either uses DTMF or plays a sound (not a
> tone) for a specific duration.  Any suggestions would be most appreciated
> :-)
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.5
Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to