Code example for SoundPool

Methods: setRate

0
      } 
    }); 
 
    chipmunkButton.setOnClickListener(new OnClickListener() {
      public void onClick(View v) {
        sp.setRate(track1, 2f);
      } 
    }); 
  } 
   
  @Override 
  protected void onPause() { 
    super.onPause();  
    sp.release();
  } 
}