There is white noise when I play an audio file in MediaPlayer
<p>I'm trying to implement a 'click' sound when the user interacts with buttons in the main screen of my application. I have no experience with audio in Android, however several sources suggest that to simply play a clip, I need only do the following - </p>

<ul>
<li>Put the audio file in /res/raw </li>
</ul>

<p>I did this, I had to create a /raw folder within /res/ - the file is named menuclick.wav (so seems to meet the guidelines for a-z0-0_ filenames) </p>

<ul>
<li><p>Create a MediaPlayer object </p>

<p>MediaPlayer mediaplayer; 
mediaplayer.create(getApplicationContext(), R.raw.menuclick); </p></li>
<li><p>Prepare the player for playback (*within a try - catch block) </p>

<p>mediaplayer.prepare(); </p></li>
<li><p>Play the file </p>

<p>mediaplayer.start(); </p></li>
</ul>

<p><em>A sound plays, however it is not the sound file I specified, it is an unpleasant hissing / static sound.</em> </p>

<p><em>I tested the application again, only changing the sound file. It played some of the sound but there was still a lot of white noise. This doesn't occur when opening the sound files normally in other applications.</em> </p>

<p>I seem to be following the same steps as several textbooks / examples. Any idea where the problem may lie? </p>
