title: Playing sound files from expansion file
body: <p>I have an expansion file with a series of sound files.  The longer ones are .mp3 files while the shorter sound effects are .wav files.  I pack them in a .zip file with no compression.  I use the Zip File reader and downloader library provided by Google.</p>
  
  <p>I'm opening the sound files like so:</p>
  
  <pre><code>MediaPlayer mPlayer;
  
  ...
  AssetFileDescript asd = expansionFile.getAssFileDescriptor(fileName);
  FileDescriptor soundFile = asd.getFileDescriptor();
  mPlayer = new MediaPlayer();
  mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
  mPlayer.setDataSource(soundFile);
  mPlayer.prepare();
  mPlayer.start();
  </code></pre>
  
  <p>The odd thing is that it plays the same sound file every single time.  It seems to be whatever it finds first.  The byte size for <code>asd.getDeclaredLength()</code> and <code>asd.getLength()</code> is exactly what it should be.  This means the file descriptor is at least finding the file, but for some reason the MediaPlayer plays whatever random file it decides.</p>
  
  <p>What exactly am I missing here?  Any help would be greatly appreciated.</p>
  
  <p>Thanks.</p>