title: delay issue when replaying a wav sound in onClick
body: <p>I have a wav sound that plays when button is pressed and when i attempt to play this again while the sound is still playing there is a short delay and does not start properly as intended! i am trying to have the sound play clean and fast on every press at anytime, here is my java code thank you</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>public class MainActivity extends AppCompatActivity {
  
  
      private MediaPlayer mp;
  
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          mp = new MediaPlayer();
  
  
  
  
          final ImageView bellImage = (ImageView) findViewById(R.id.bellImage);
  
          bellImage.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View view) {
                  loopMP();
                  mp = MediaPlayer.create(getApplicationContext(), R.raw.ding2);
                  mp.start();
  
              }
          });
  
      }
  
      public void playMusic() {
  
          if (mp != null) {
              mp.start();
          }
      }
  
  
      @Override
      protected void onDestroy() {
  
          if (mp != null &amp;&amp; mp.isPlaying()) {
  
              mp.stop();
              mp.release();
              mp = null;
          }
          super.onDestroy();
      }
  
      private void loopMP(){
          if (mp != null){ mp.stop(); mp.release(); mp = null; }
      }
  
  
  
  }</code></pre>
  </div>
  </div>
  </p>