Package javax.media.format

Examples of javax.media.format.AudioFormat.matches()


      {
        AudioFormat f2 = f2s[i];
        assertTrue(f1.equals(f2));
        assertTrue(f1.matches(f2));
        assertTrue(f2.equals(f1));
        assertTrue(f2.matches(f1));
      }
    }
   
    // AudioFormat - not equal and not match:
    {
View Full Code Here


        AudioFormat f2 = f2s[i];
        //System.out.println(f2);
        assertFalse(f1.equals(f2));
        assertFalse(f1.matches(f2));
        assertFalse(f2.equals(f1));
        assertFalse(f2.matches(f1));
      }
    }

    // AudioFormat - not equal but match:
    {
View Full Code Here

        AudioFormat f2 = f2s[i];
        //System.out.println(f2);
        assertFalse(f1.equals(f2));
        assertTrue(f1.matches(f2));
        assertFalse(f2.equals(f1));
        assertTrue(f2.matches(f1));
      }
    }
  }

 
View Full Code Here

    // strangely, WavAudioFormat and AudioFormat match.
    {
      final WavAudioFormat f = new WavAudioFormat("abc");
      final AudioFormat f2 = new AudioFormat("abc");
      assertEquals(f.matches(f2), true);
      assertEquals(f2.matches(f), true);
    }
   
    {
     
      final WavAudioFormat f = new WavAudioFormat("abc", 1.0, 2, 3, 7, 4, 5, 6, 7, byte[].class, new byte[0]);
View Full Code Here

    {
     
      final WavAudioFormat f = new WavAudioFormat("abc", 1.0, 2, 3, 7, 4, 5, 6, 7, byte[].class, new byte[0]);
      final AudioFormat f2 = new AudioFormat("abc", 1.0, 2, 3, 4, 5, 6, 7, byte[].class);
      assertEquals(f.matches(f2), false);
      assertEquals(f2.matches(f), false);
    }
   
  }
 
  public void testConstructors()
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.