Hello All,
I am trying to read one by one all the sample of a wave file in Java. I am working with eclipse.
I have created simple that does not work. I am seeing the following error.
Error
================================================== ============
Description Resource Path Location Type
WavFile cannot be resolved to a type ReadSample.java /ReadExample/src line 13 Java Problem
================================================== ===========
Please see my code below
============================================
import sun.audio.*;
import java.io.*;
public class ReadSample
{
public static void main(String[] args)
{
// TODO Auto-generated method stub
try
{
// Open the wave file specified as the first argument
WavFile wavFile = WavFile.openWaveFile (new File("C:/Download/Wave_Files/ymch1x16.wav"));
// Display information about the wav file
wavFile.display();
}
catch (Exception e)
{
System.err.println(e) ;
}
}
}
====================================
Many thanks for your help.
Cserge