Task 1 - minor
This commit is contained in:
parent
2cd827bdab
commit
ce055e4377
@ -31,6 +31,7 @@ public class SoundJLayerBridge extends PlaybackListener implements Runnable, Sou
|
||||
/**
|
||||
* Play the target sound
|
||||
*/
|
||||
@Override
|
||||
public void play() {
|
||||
try {
|
||||
String urlAsString = "file:///"
|
||||
@ -55,6 +56,7 @@ public class SoundJLayerBridge extends PlaybackListener implements Runnable, Sou
|
||||
/**
|
||||
* Stops the target sound
|
||||
*/
|
||||
@Override
|
||||
public void stop() {
|
||||
try {
|
||||
this.playerThread.stop();
|
||||
@ -66,6 +68,7 @@ public class SoundJLayerBridge extends PlaybackListener implements Runnable, Sou
|
||||
/**
|
||||
* Runs the player thread
|
||||
*/
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
this.player.play();
|
||||
|
@ -18,7 +18,7 @@ import java.util.HashMap;
|
||||
public class AudioLoadHelper {
|
||||
private static String pathToAudioStore = "./res/audio";
|
||||
|
||||
private SoundBridgeFactory soundBridgeFactory;
|
||||
private final SoundBridgeFactory soundBridgeFactory;
|
||||
private SoundBridge musicToPlay;
|
||||
private HashMap<String, SoundBridge> preloadedSounds;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user