audio file comparison (java)
<p>I'd like to make a comparison between two audio files based on their sample size (number of bits per sample)</p>

<p>I'm wondering if this code statement is correct:</p>

<pre><code>AudioInputStream clip1 = AudioSystem.getAudioInputStream(soundFile1);
AudioInputStream clip2 = AudioSystem.getAudioInputStream(soundFile2);

        // check sample size    
        if (clip1.getSampleSizeInBits() != clip2.getSampleSizeInBits()) {

        ...do something
              }
</code></pre>

<p>I get this error (repeated twice):
cannot find symbol
symbol  : method getSampleSizeInBits()</p>

<p>What should I do?</p>

<p>Actually what I want to do is to check the difference , so if they have different sample size , the user should get a warning message.</p>

<p>Thanks for your help</p>

<p>Ulrike</p>
