title: phonegap media sound stop playing after 5 times
body: <p>I need to play the "correct" sound if user answer the question correctly and "wrong" if incorrect. The sound is playing at first but after at the fifth time I answer correctly which output the fourth time "correct" sound already the fifth time, no sound can be heard. It seems the music can only played at most 4th times.
  What is the possible reason that cause this?</p>
  
  <p><strong>updated*</strong>
  I added media.release in my stopAudio() but so far the sound can be heard for 6th (improved) but it is still not suits my case. (Many questions that need the same sound effect)</p>
  
  <p>Js.file</p>
  
  <pre><code>// Audio player
      var my_media = null;
      var mediaTimer = null;
  
      // Play audio
      function playAudio(src) {
          // Create Media object from src
          my_media = new Media(src, null, soundCB);
          my_media.play();
      }
  
      function soundCB(err){
          console.log("playAudio():Audio Error: "+err);
      }
  
      // Stop audio
      // 
      function stopAudio() {
          if (my_media) {
              alert("AQA");
              my_media.stop();
              my_media.release();
          }
          clearInterval(mediaTimer);
          mediaTimer = null;
      }
  </code></pre>
  
  <p>/////question part//////</p>
  
  <pre><code>$("#answer").live('tap', function(event){   
  
  if(buttonAns==true) {
      $this= $(this);     
      buttonAns = false;   
  var choice = $this.attr("class");   
  if((correctAnsNo == 0 &amp;&amp; choice =="answer0")||(correctAnsNo == 1 &amp;&amp; choice =="answer1")||(correctAnsNo == 2 &amp;&amp; choice =="answer2")){
  
          playAudio('/android_asset/www/audio/fall.mp3'); //falling sound     
          correct = parseInt(correct)+2;  
  
          playAudio('/android_asset/www/audio/correct.mp3'); //dingdong
      }else{          
          playAudio('/android_asset/www/audio/wrong1.wav');           
      }
      if(quesNo &lt; wordsNo ){ 
          setTimeout(function() {    
              buttonAns = true;                       
              db.transaction(queryQuesDB, errorCB);
          },1800); 
      }else{
          endLevel();         
      } 
  } else {
      event.preventDefault();
  }       
  });
  </code></pre>