title: C# - Xamarin Forms audio player stops working after 5 or 6 uses
body: <p>I am using this implementation of an Audio Player in Xamarin</p>
  
  <p><a href="https://www.codeproject.com/Articles/1088094/Playing-audio-mp-File-in-Xamarin-Forms" rel="nofollow noreferrer">https://www.codeproject.com/Articles/1088094/Playing-audio-mp-File-in-Xamarin-Forms</a></p>
  
  <p>I have a button in my code that, when pressed, plays a certain, short (1-2 seconds) tone.</p>
  
  <p>The player in the link works well, but for some reason if I repeatedly press my button like 5 or 6 times the audio player doesnt work anymore. Even if I leave the page and come back the audio player still doesn't work. What could be causing this? I'm fearing that it might be a device security thing on Android, because why else would it play the first few times?</p>
  
  <p>Here is my code for clicking the button</p>
  
  <pre><code>    void PlayChordClicked(object sender, EventArgs e)
      {
           DependencyService.Get&lt;IAudio&gt;().PlayAudioFile(myMp3);
      }
  </code></pre>
  
  <p>Everything else is exactly as copied from the tutorial.
  Thanks!</p>