Package javax.sound.midi

Examples of javax.sound.midi.Sequence.deleteTrack()


        tr1.add(event2);
        tr1.add(event3);
        assertEquals(6, seq.getTickLength());
        seq.deleteTrack(tr1);
        assertEquals(2, seq.getTickLength());
        seq.deleteTrack(tr);
        assertEquals(0, seq.getTickLength());
    }
   
    /**
     * test method getTracks()
View Full Code Here


         * actions with array doesn't influence on
         * initial data...
         */
        assertEquals(tr1, tracks[10]);
        tracks[10] = null;
        assertTrue(seq.deleteTrack(tr1));
        assertTrue(seq.deleteTrack(tracks[9]));
        /*
         * ...and action with initial data doesn't
         * influence on array
         */
 
View Full Code Here

         * initial data...
         */
        assertEquals(tr1, tracks[10]);
        tracks[10] = null;
        assertTrue(seq.deleteTrack(tr1));
        assertTrue(seq.deleteTrack(tracks[9]));
        /*
         * ...and action with initial data doesn't
         * influence on array
         */
        assertEquals(11, tracks.length);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.