如何在Android的播放不同的声音frequeny? [英] How to play different frequeny sound in android?

查看:139
本文介绍了如何在Android的播放不同的声音frequeny?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我想创建一个动物排斥application.I'm新国际展览局,以android.I想扮演不同频率的声音来击退的动物,但我不清楚怎​​么玩。请帮助我。

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

感谢名单提前。
Praween。

Thanx in advance. Praween.

推荐答案

您最好的选择是使用ToneGenerator:

Your best bet is to use a ToneGenerator:

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

允许您创建色调,你的特定需求,包括频率controlls,音长,等等。

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.

希望这有助于

这篇关于如何在Android的播放不同的声音frequeny?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆