Android版的Soundpool率范围是多少? [英] Android soundpool rate range?

查看:255
本文介绍了Android版的Soundpool率范围是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android的 soundpool.play [文件] [1]说的回放速率允许应用程序改变声音的播放速率(间距),一个1.0方法价值回放在原始频率的2.0播放方式值回两倍的速度,和0.5的值意味着以半速播放。的。

Android's soundpool.play [documentation][1] says "The playback rate allows the application to vary the playback rate (pitch) of the sound. A value of 1.0 means play back at the original frequency. A value of 2.0 means play back twice as fast, and a value of 0.5 means playback at half speed.".

然而,当我的速率为1.49f,我听到沉默。 1.485f正确呈现(它是OGG文件)。这是具体到我的手机,是文档错了,还是我在一些其他的方式是愚蠢的?

However, when I set the rate to 1.49f, I hear silence. 1.485f renders correctly (it's ogg file). Is this specific to my handset, is the documentation wrong, or am I being foolish in some other way?

[1]: http://developer.android。 COM /参考/安卓/媒体/ SoundPool.html#播放(INT ,浮球,浮球,诠释,整型,浮点)

[1]: http://developer.android.com/reference/android/media/SoundPool.html#play(int, float, float, int, int, float)

推荐答案

我在这种新的,但我是pretty肯定它需要0.5F,1F,或1.5F并没有其他值。这不是针对任何特定的OGG文件。我知道它在SoundManager类中的播放过程中改变音高。由于没有人回答,我想我的答案可能会比没有回答好。

I'm sort of new at this, but I'm pretty sure it needs to be 0.5f, 1f, or 1.5f and no other values. It's not specific to any particular ogg file. I do know it changes the pitch during playback in soundmanager. Since no one else answered, I figured my answer might be better than no answer.

这篇关于Android版的Soundpool率范围是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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