aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/soundbot/GuildMusicManager.java
diff options
context:
space:
mode:
authorBrandon <bwaggone@umich.edu>2018-04-07 17:09:12 -0400
committerBrandon <bwaggone@umich.edu>2018-04-07 17:09:12 -0400
commit7eeb97fc307257290acfbf6ecbb055cdc5788c2b (patch)
tree4104b270ee87cde8a383cfc91ba6562f45dfe85e /src/main/java/soundbot/GuildMusicManager.java
parent3799c7828ad8ef2968f39e4044db36885aec1ab4 (diff)
downloadSoundChan-7eeb97fc307257290acfbf6ecbb055cdc5788c2b.tar.gz
SoundChan-7eeb97fc307257290acfbf6ecbb055cdc5788c2b.tar.bz2
SoundChan-7eeb97fc307257290acfbf6ecbb055cdc5788c2b.zip
Rename main, add properties loading
Diffstat (limited to 'src/main/java/soundbot/GuildMusicManager.java')
-rw-r--r--src/main/java/soundbot/GuildMusicManager.java35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/main/java/soundbot/GuildMusicManager.java b/src/main/java/soundbot/GuildMusicManager.java
deleted file mode 100644
index fc46756..0000000
--- a/src/main/java/soundbot/GuildMusicManager.java
+++ /dev/null
@@ -1,35 +0,0 @@
-package soundbot;
-
-import com.sedmelluq.discord.lavaplayer.player.AudioPlayer;
-import com.sedmelluq.discord.lavaplayer.player.AudioPlayerManager;
-
-/**
- * Holder for both the player and a track scheduler for one guild.
- */
-public class GuildMusicManager {
- /**
- * Audio player for the guild.
- */
- public final AudioPlayer player;
- /**
- * Track scheduler for the player.
- */
- public final TrackScheduler scheduler;
-
- /**
- * Creates a player and a track scheduler.
- * @param manager Audio player manager to use for creating the player.
- */
- public GuildMusicManager(AudioPlayerManager manager) {
- player = manager.createPlayer();
- scheduler = new TrackScheduler(player);
- player.addListener(scheduler);
- }
-
- /**
- * @return Wrapper around AudioPlayer to use it as an AudioSendHandler.
- */
- public AudioPlayerSendHandler getSendHandler() {
- return new AudioPlayerSendHandler(player);
- }
-}