|
@ -18,7 +18,7 @@ public class CDPlayer implements Device { |
|
|
private List<String> supportedFormats = new ArrayList<String>(Arrays.asList(new String[] {"Audio","MP3","WMA","AAC"})); |
|
|
private List<String> supportedFormats = new ArrayList<String>(Arrays.asList(new String[] {"Audio","MP3","WMA","AAC"})); |
|
|
|
|
|
|
|
|
private String actualPlayTrack=""; |
|
|
private String actualPlayTrack=""; |
|
|
private CD loadedCD; |
|
|
|
|
|
|
|
|
private CD loadedCD=null; |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void louder() { |
|
|
public void louder() { |
|
@ -86,6 +86,9 @@ public class CDPlayer implements Device { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public String chooseItem(int itemNr) { |
|
|
public String chooseItem(int itemNr) { |
|
|
|
|
|
if(this.loadedCD==null){ |
|
|
|
|
|
throw new ReturnValueNullException(); |
|
|
|
|
|
} |
|
|
return null; |
|
|
return null; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|