| 414 | } |
| 415 | |
| 416 | public Music getMusic(FileHandle file) { |
| 417 | if (file == null || !file.exists() || !FileType.Absolute.equals(file.type())) { |
| 418 | System.err.println("Failed to load: " + file + "!."); |
| 419 | return null; |
| 420 | } |
| 421 | Music music = manager().get(file.path(), Music.class, false); |
| 422 | if (music == null) { |
| 423 | manager().load(file.path(), Music.class); |
| 424 | manager().finishLoadingAsset(file.path()); |
| 425 | music = manager().get(file.path(), Music.class); |
| 426 | } |
| 427 | return music; |
| 428 | } |
| 429 | |
| 430 | public Sound getSound(FileHandle file) { |
| 431 | if (file == null || !file.exists() || !FileType.Absolute.equals(file.type())) { |