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

Method playSoundLoop

core/src/core/java/var3d/net/center/VGame.java:1551–1560  ·  view source on GitHub ↗

循环播放音效

(final String musicName)

Source from the content-addressed store, hash-verified

1549 * 循环播放音效
1550 */
1551 public void playSoundLoop(final String musicName) {
1552 if (isSound == false) return;
1553 if (soundRuns.size > 5) {
1554 soundRuns.add(new Runnable() {
1555 public void run() {
1556 getSound(musicName).loop();
1557 }
1558 });
1559 } else getSound(musicName).loop();
1560 }
1561
1562 public void playSoundLoop(final String musicName, final float vol) {
1563 if (isSound == false) return;

Callers

nothing calls this directly

Calls 1

getSoundMethod · 0.95

Tested by

no test coverage detected