Newer
Older
CactusServer / src / main / java / framework / audio / BGM3D.java
y-ota on 10 May 2018 338 bytes 初うp
package framework.audio;

public class BGM3D {
	private static Sound3D currentBGM = null;
	
	public static Sound3D registerBGM(String fileName) {
		return new Sound3D(fileName);
	}
	
	public static void playBGM(Sound3D newBGM) {
		if (currentBGM != null) currentBGM.stop();
		newBGM.loopPlay();
		currentBGM = newBGM;
	}
}