use of org.terasology.engine.core.subsystem.headless.HeadlessAudio in project Terasology by MovingBlocks.
the class Terasology method populateSubsystems.
private void populateSubsystems(TerasologyEngineBuilder builder) {
if (isHeadless) {
builder.add(new HeadlessGraphics()).add(new HeadlessTimer()).add(new HeadlessAudio());
} else {
EngineSubsystem audio = soundEnabled ? new LwjglAudio() : new HeadlessAudio();
builder.add(audio).add(new LwjglGraphics()).add(new LwjglTimer()).add(new LwjglInput()).add(new BindsSubsystem()).add(new OpenVRInput());
builder.add(new DiscordRPCSubSystem());
}
builder.add(new HibernationSubsystem());
}
Also used :
LwjglAudio(org.terasology.engine.core.subsystem.lwjgl.LwjglAudio)
HeadlessTimer(org.terasology.engine.core.subsystem.headless.HeadlessTimer)
BindsSubsystem(org.terasology.engine.core.subsystem.config.BindsSubsystem)
HeadlessGraphics(org.terasology.engine.core.subsystem.headless.HeadlessGraphics)
EngineSubsystem(org.terasology.engine.core.subsystem.EngineSubsystem)
OpenVRInput(org.terasology.engine.core.subsystem.openvr.OpenVRInput)
LwjglTimer(org.terasology.engine.core.subsystem.lwjgl.LwjglTimer)
LwjglInput(org.terasology.engine.core.subsystem.lwjgl.LwjglInput)
LwjglGraphics(org.terasology.engine.core.subsystem.lwjgl.LwjglGraphics)
HeadlessAudio(org.terasology.engine.core.subsystem.headless.HeadlessAudio)
DiscordRPCSubSystem(org.terasology.subsystem.discordrpc.DiscordRPCSubSystem)
HibernationSubsystem(org.terasology.engine.core.subsystem.common.hibernation.HibernationSubsystem)