I'm doing a simple app for a nokia 6131 and i need to play some audio files, but i can't.
The player method is the following one:

Code:
private void playMedia() throws Exception {
      try{
          InputStream is = getClass().getResourceAsStream("audio.wav");
          player = Manager.createPlayer(is, "audio/x-wav");  
          player.realize();
          player.setLoopCount(1);
          player.start();
      }
      catch(Exception e){
          System.out.println(e.toString());
      }
  }
I get: java.microedition.media.Mediaexception: device error

does anyone have any idea??

Thanks