Loud static when starting 3D Sound System (paulscode)

public static void init() {
		try {
			SoundSystemConfig.addLibrary(LibraryLWJGLOpenAL.class);
			SoundSystemConfig.addLibrary(LibraryJavaSound.class);
			SoundSystemConfig.setCodec("ogg", CodecJOgg.class);
			SoundSystemConfig.setCodec("wav", CodecWav.class);
		} catch (SoundSystemException e) {
			System.err.println("Error linking with the plug-ins");
		}

		ss = new SoundSystem();

		ss.newStreamingSource(true, "music0", "music0.ogg", true, 0, 0, 0,
				SoundSystemConfig.ATTENUATION_NONE, 0);
		ss.newStreamingSource(true, "music1", "music1.ogg", true, 0, 0, 0,
				SoundSystemConfig.ATTENUATION_NONE, 0);
		ss.newStreamingSource(true, "music2", "music2.ogg", true, 0, 0, 0,
				SoundSystemConfig.ATTENUATION_NONE, 0);
		
		ss.setMasterVolume(0.0f);
	}

Here’s the code I have to initialize the sound system. I tried setting master volume to 0 then what it’s supposed to be after loading is complete but I still have issues. On top of that even though the sound runs fine in Eclipse it doesn’t in the exported JAR

you need to do


ss = new SoundSystem();
ss.init();

SoundSystem doesn’t have a no argument init function and it’s not visible either

Oh, comparing your code to mine, i may of found the problem I think.

your doing JOgg it should be JOrbis.

change


         SoundSystemConfig.setCodec("ogg", CodecJOgg.class);

to


				SoundSystemConfig.setCodec( "ogg", CodecJOrbis.class );

edit: actually i’m not sure if that is the problem, do you have JOgg and not sure if you need JOrbis packages inside your project?