I need to play music (this is the only sound in my game). So far I've written this, but it keeps giving me errors:
"incompatible types"
Here's my sound code:
try {
InputStream is = getClass().getResourceAsStream("/sound.wav");
Player p = Manager.createPlayer(is, "/X-wav");
p.start();
} catch (IOException ioe) {
} catch (MediaException me) {
}
The error occurs in line 3;