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);       
    }
}; 
alaster
  • 3,821
  • 3
  • 24
  • 32
Aashish Bhatnagar
  • 2,595
  • 2
  • 22
  • 37

1 Answers1

0

I got it working by using a very small sound file and running the same over the UI thread and it is working very close to what I needed now thanks alot for help.

Aashish Bhatnagar
  • 2,595
  • 2
  • 22
  • 37