i am trying to add sound to my game and have found this implementation
try {
InputStream is = getClass().getResourceAsStream(“song.mid”);
Player audioPlayer = Manager.createPlayer(is, “audio/midi”);
audioPlayer.start();
} catch (IOException ioe) {
} catch (MediaException me) { }
problem is i keep getting a compliation error pointing to the ‘is’ in the second line with the manager, saying its an incompatible type. i have imported java.io, util, the microedition.media and media.control, where am i going wrong?
any ideas?
cheers
beta test the current game @
www.pistachiomonkey.com