开发者

How to play different frequeny sound in android?

开发者 https://www.devze.com 2023-02-04 04:28 出处:网络
HI, I want to create a animal repeller application.I\'m new bie to android.I want to play different 开发者_StackOverflow frequency sound to repel the animal,but I\'m not clear how to play .please hel

HI,

I want to create a animal repeller application.I'm new bie to android.I want to play different 开发者_StackOverflow frequency sound to repel the animal,but I'm not clear how to play .please help me out .

Thanx in advance. Praween.


Your best bet is to use a ToneGenerator:

http://developer.android.com/reference/android/media/ToneGenerator.html

Allows you to create tones to you specific needs, includes controlls for frequency, length of tone, so on.

Read up on the class and find the best way to do what you want it to do.

Hope this helps

0

精彩评论

暂无评论...
验证码 换一张
取 消