I am trying to get the properties of a file .wavthat I use in my Java project using the following code. However, when I run this code, methods format.getProperty("title"), format.getProperty("author")and format.getProperty("duration")all return null. Should I get this data in a different way?
AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(wavFile);
AudioFormat format = audioInputStream.getFormat();
Object[] temp = {false,
format.getProperty("title"),
format.getProperty("author"),
format.getProperty("duration")};
source
share