Skip to content

Commit

Permalink
Clean up sounds stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixaurora committed Oct 29, 2024
1 parent 961a47e commit 404c02e
Show file tree
Hide file tree
Showing 15 changed files with 21 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ private class MusicDisplayMode implements DisplayMode {
private final WidgetContainer<Timer> timer;
private final WidgetContainer<StaticTexture> albumArt;
private final WidgetContainer<PushableTextLines> songInfo;
private final WidgetContainer<RectangularButton> pauseButton;
private final PlayingSong song;

MusicDisplayMode(WidgetContainer<ProgressBar> progressBar, WidgetContainer<Timer> timer,
Expand All @@ -160,6 +161,7 @@ private class MusicDisplayMode implements DisplayMode {
this.timer = timer;
this.albumArt = albumArt;
this.songInfo = songInfo;
this.pauseButton = pauseButton;
this.song = song;
}

Expand All @@ -174,6 +176,7 @@ public void cleanup() {
MusicScreen.this.removeWidget(this.timer);
MusicScreen.this.removeWidget(this.albumArt);
MusicScreen.this.removeWidget(this.songInfo);
MusicScreen.this.removeWidget(this.pauseButton);
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.pixaurora.kitten_star.impl;
package net.pixaurora.kitten_sounds.impl;

import java.util.Optional;
import java.util.concurrent.CompletableFuture;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.pixaurora.kitten_star.impl;
package net.pixaurora.kitten_sounds.impl;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.pixaurora.kitten_star.impl;
package net.pixaurora.kitten_sounds.impl;

import net.pixaurora.kitten_heart.impl.music.progress.PolledListeningProgress;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.pixaurora.kitten_star.impl;
package net.pixaurora.kitten_sounds.impl;

import net.minecraft.resources.ResourceLocation;
import net.pixaurora.kit_tunes.api.resource.ResourcePath;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.pixaurora.kitten_star.impl.mixin;
package net.pixaurora.kitten_sounds.impl.mixin;

import org.lwjgl.openal.AL10;
import org.lwjgl.openal.AL11;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.pixaurora.kitten_star.impl.mixin;
package net.pixaurora.kitten_sounds.impl.mixin;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand All @@ -7,7 +7,7 @@

import net.minecraft.client.Minecraft;
import net.pixaurora.kitten_heart.impl.KitTunes;
import net.pixaurora.kitten_star.impl.MusicPolling;
import net.pixaurora.kitten_sounds.impl.MusicPolling;

@Mixin(Minecraft.class)
public class MinecraftMixin {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.pixaurora.kitten_star.impl.mixin;
package net.pixaurora.kitten_sounds.impl.mixin;

import java.util.Map;

Expand All @@ -12,7 +12,7 @@
import net.minecraft.client.resources.sounds.SoundInstance;
import net.minecraft.client.sounds.ChannelAccess;
import net.minecraft.client.sounds.SoundEngine;
import net.pixaurora.kitten_star.impl.MusicPolling;
import net.pixaurora.kitten_sounds.impl.MusicPolling;

@Mixin(SoundEngine.class)
public class SoundEngineMixin {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.pixaurora.kitten_star.impl;
package net.pixaurora.kitten_sounds.impl;

import java.util.Optional;
import java.util.concurrent.CompletableFuture;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.pixaurora.kitten_star.impl;
package net.pixaurora.kitten_sounds.impl;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.pixaurora.kitten_star.impl;
package net.pixaurora.kitten_sounds.impl;

import net.pixaurora.kitten_heart.impl.music.progress.PolledListeningProgress;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.pixaurora.kitten_star.impl;
package net.pixaurora.kitten_sounds.impl;

import net.minecraft.resources.ResourceLocation;
import net.pixaurora.kit_tunes.api.resource.ResourcePath;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.pixaurora.kitten_star.impl.mixin;
package net.pixaurora.kitten_sounds.impl.mixin;

import org.lwjgl.openal.AL10;
import org.lwjgl.openal.AL11;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.pixaurora.kitten_star.impl.mixin;
package net.pixaurora.kitten_sounds.impl.mixin;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand All @@ -7,7 +7,7 @@

import net.minecraft.client.Minecraft;
import net.pixaurora.kitten_heart.impl.KitTunes;
import net.pixaurora.kitten_star.impl.MusicPolling;
import net.pixaurora.kitten_sounds.impl.MusicPolling;

@Mixin(Minecraft.class)
public class MinecraftMixin {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package net.pixaurora.kitten_star.impl.mixin;
package net.pixaurora.kitten_sounds.impl.mixin;

import java.util.Map;

Expand All @@ -12,7 +12,7 @@
import net.minecraft.client.resources.sounds.SoundInstance;
import net.minecraft.client.sounds.ChannelAccess;
import net.minecraft.client.sounds.SoundEngine;
import net.pixaurora.kitten_star.impl.MusicPolling;
import net.pixaurora.kitten_sounds.impl.MusicPolling;

@Mixin(SoundEngine.class)
public class SoundEngineMixin {
Expand Down

0 comments on commit 404c02e

Please sign in to comment.