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