What is "currentSound" for renamed?
"soundVolume" also
|
|



Urgh.. this is all become a mighty pain in that ass all for multiple sound support, I'm going to revert back to my old system and try and add onto it then, but thanks anyway galkon, Just this would require far too much renaming![]()


in Signlink under run()
this is your code (doesnt work)
if (play) {
midi = s + savereq;
try {
if (music != null) {
music.stop();
music.close();
}
playMidi(midi);
} catch (Exception ex) {
ex.printStackTrace();
}
play = false;
}
savereq = null;
My Code Does work any idea?
if(midiplay)
{
midi = s + savereq;
try {
if (musicSr != null)
{
musicSr.stop();
musicSr.close();
}
musicSr = null;
musicS = null;
File music = new File(midi);
if(music.exists())
{
musicS = MidiSystem.getSequence(music);
}
// Create a sequencer for the sequence
musicSr = MidiSystem.getSequencer();
musicSr.open();
musicSr.setSequence(musicS);
musicSr.setLoopCount(musicSr.LOOP_CONTINUOUSLY);
musicSr.start();
} catch (Exception ex) {
ex.printStackTrace();
}
midiplay = false;


| « OSRS Item Recolourings | Autowrapping text » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |