]> ruin.nu Git - moosique.git/blobdiff - Moosique.java
no message
[moosique.git] / Moosique.java
index 531e4f511886dcc96c10c7ed9d614f9da83d6bf0..c10043616f76d847484e05af0ebb896861f36d70 100644 (file)
@@ -119,6 +119,14 @@ public class Moosique {
                return channels;
        }
 
+       /** 
+        * Returns the MidiChannels of the selected synthesizer.
+        * @return the available MidiChannels
+        */
+       public static MidiChannel getChannel(int i) {
+               return channels[i];
+       }
+
        /** 
         * Returns the currently active MidiChannel.
         * @return the active MidiChannel
@@ -161,7 +169,7 @@ public class Moosique {
         */
        public static void pause() {
                sequencer.stop();
-               player.destroy();
+               player.interrupt();
        }
 
        /**