mirror of
https://git.zelz.net/catfoolyou/Project164.git
synced 2025-12-14 10:57:42 +00:00
Fix sound
This commit is contained in:
@@ -142,7 +142,7 @@ public class JavaLayerUtils
|
||||
public static Object deserializeArrayResource(String name, Class elemType, int length)
|
||||
throws IOException
|
||||
{
|
||||
InputStream str = getResourceAsStream(name);
|
||||
InputStream str = JavaLayerUtils.class.getClassLoader().getResourceAsStream(name);
|
||||
if (str==null)
|
||||
throw new IOException("unable to load resource '"+name+"'");
|
||||
|
||||
|
||||
@@ -476,7 +476,7 @@ public class SoundManager {
|
||||
public void playTheTitleMusic() {
|
||||
if(titleMusic == -1 || !EaglerAdapter.isPlaying(titleMusic)) {
|
||||
if(this.options.musicVolume > 0.0f) {
|
||||
titleMusic = EaglerAdapter.beginPlaybackStatic("/sounds/gta.mp3", 1.0f, 1.0f, true);
|
||||
titleMusic = EaglerAdapter.beginPlaybackStatic("/sounds/menu.mp3", 1.0f, 1.0f, true);
|
||||
EaglerAdapter.fireTitleMusicEvent(true, this.options.musicVolume);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user