title: MediaPlayer no longer working on the emulator since r10?
body: <pre><code>protected MediaPlayer _mediaPlayer;  
  
  protected void playFromResource(int resId)     
      {     
      if (_mediaPlayer != null)         
          {         
          _mediaPlayer.stop();         
          _mediaPlayer.release();
          }     
      _mediaPlayer = MediaPlayer.create(this, resId);
      _mediaPlayer.start();
      }  
  </code></pre>
  
  <p>This code used to work fine on both the emulator and on devices. Since some time (I think it is since I updated to ADT r10) it only works on devices. On the emulator there is no sound anymore and the application freezes when it pass <code>on _mediaPlayer.release()</code> (the second time the function is called). I was able to keep the application from crashing by replacing the <code>stop()</code> and <code>release()</code> by <code>reset()</code> but it does not solve the main issue: There is no sound on the emulator.</p>
  
  <p>the log file show me a bunch of these (only on the emulator) just after the call to <code>start()</code></p>
  
  <blockquote>
    <p>03-09 19:14:30.716: WARN/AudioTrack(34): obtainBuffer timed out (is
    the CPU pegged?) 0x1afb8 user=00001e00, server=00000600</p>
  </blockquote>
  
  <p>Any clues ???? </p>