I have this; a new sound is loaded, the old one will still play
can this be fixed, or is it just the way minim works … ?
I want to be able to load a new sound to save memory
Code:
for ( int i = 0; i < 2; i++ ) {
if ( this.countMP3Renewed > 0) {
player[i].mute();
player[i].close();
}
// problem!, when new sound has been loaded, the old one will still play!
player[i] = minim.loadFile( soundNames[i] );
player[i].setGain( -40 );
player[i].loop();
}