MCPcopy Create free account
hub / github.com/Var3D/var3dframe / getSound

Method getSound

core/src/core/java/var3d/net/center/VGame.java:1489–1497  ·  view source on GitHub ↗
(String soundName)

Source from the content-addressed store, hash-verified

1487 }
1488
1489 public Sound getSound(String soundName) {
1490 if (assets.isLoaded(soundName, Sound.class) == true) {
1491 return assets.get(soundName, Sound.class);
1492 } else {
1493 assets.load(soundName, Sound.class);
1494 assets.finishLoading();
1495 return assets.get(soundName, Sound.class);
1496 }
1497 }
1498
1499 /**
1500 * 获取粒子(粒子文件的图片资源应放在image文件夹)

Callers 4

runMethod · 0.95
playSoundMethod · 0.95
playSoundLoopMethod · 0.95
stopSoundMethod · 0.95

Calls 2

loadMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected