1

I am trying to play a sound when my wheel is scratched(DJ Turn Table) the sound file is playing like a timer tick tick tick.
It is a pretty small file 00:02.
I want this file to play almost in a continuous way like a real scratch.
I am using soundpool here and I also tried to increase the rate to 2f but still the same.
Here is a runnable I am calling when wheel is rotated:

r1 = new Runnable() {

    public void run() {
        // TODO Auto-generated method stub
        streamId = s.play(R.raw.clickslow, maxVolume, maxVolume, 100, 0, 2f);       
    }
}; 
4

1 に答える 1

0

非常に小さなサウンド ファイルを使用し、UI スレッドで同じファイルを実行することで動作しました。助けてくれてありがとう、今必要なものに非常に近い動作をしています。

于 2012-06-25T06:01:44.443 に答える