MCPcopy Create free account
hub / github.com/Card-Forge/forge / getMusic

Method getMusic

forge-gui-mobile/src/forge/assets/Assets.java:416–428  ·  view source on GitHub ↗
(FileHandle file)

Source from the content-addressed store, hash-verified

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())) {

Callers 2

loadDialogMethod · 0.80
AudioMusicMethod · 0.80

Calls 6

managerMethod · 0.95
typeMethod · 0.80
finishLoadingAssetMethod · 0.80
getMethod · 0.65
loadMethod · 0.65
equalsMethod · 0.45

Tested by

no test coverage detected