=Synchronized response String
This commit is contained in:
@@ -12,8 +12,9 @@ import dataStructures.KittyGuild;
|
||||
|
||||
public class AudioController
|
||||
{
|
||||
private final AudioPlayerManager playerManager;
|
||||
public String response;
|
||||
private final AudioPlayerManager playerManager;
|
||||
|
||||
|
||||
public AudioController()
|
||||
{
|
||||
@@ -23,9 +24,10 @@ public class AudioController
|
||||
}
|
||||
|
||||
public void loadAndPlay(final String trackUrl, KittyGuild guild)
|
||||
{
|
||||
synchronized(response)
|
||||
{
|
||||
GuildMusicManager musicManager = guild.musicManager;
|
||||
response = "HERE";
|
||||
|
||||
playerManager.loadItemOrdered(musicManager, trackUrl, new AudioLoadResultHandler()
|
||||
{
|
||||
@@ -68,6 +70,8 @@ public class AudioController
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void play(GuildMusicManager musicManager, AudioTrack track)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user