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

Method playSound

core/src/core/java/var3d/net/center/VGame.java:1526–1535  ·  view source on GitHub ↗
(final String musicName)

Source from the content-addressed store, hash-verified

1524 private Array<Runnable> soundRuns = new Array<>();
1525
1526 public void playSound(final String musicName) {
1527 if (isSound == false) return;
1528 if (soundRuns.size > 5) {
1529 soundRuns.add(new Runnable() {
1530 public void run() {
1531 getSound(musicName).play();
1532 }
1533 });
1534 } else getSound(musicName).play();
1535 }
1536
1537 public void playSound(final String musicName, final float vol) {
1538 if (isSound == false) return;

Callers

nothing calls this directly

Calls 2

getSoundMethod · 0.95
playMethod · 0.80

Tested by

no test coverage detected