private void setupPlayer(String filename)
    {   	   	
    	
    	try {
    		InputStream is = getClass().getResource(filename).openStream();
            if(filename.contains("music/")){            
            	musicPlayer = new AdvancedPlayer(is, createAudioDevice());
            }
            else if(filename.contains("sounds/")){            	
            	soundPlayer = new AdvancedPlayer(is, createAudioDevice());            	
            }
        }
        catch (IOException e) {
            reportProblem(filename);
            killPlayer(filename);
        }
        catch(JavaLayerException e) {
            reportProblem(filename);
            killPlayer(filename);
        }    	    	
    }