Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 857 Bytes

README.md

File metadata and controls

30 lines (26 loc) · 857 Bytes

JavaWavInfo

Read RIFF metadata Chunks of WAV files in JAVA based on wavIO by Evan X. Merz, extended to support more of of the RIFF wav format spec

Eample Usage


import com.diamonddrake.wav.InfoTypes;
import com.diamonddrake.wav.WavInfo;

public class App {
	public static void main(String[] args) {
		WavInfo wi = new WavInfo("C:/test.wav");
		System.out.println(wi.getSummary());
		System.out.println(wi.getInfo(InfoTypes.ARTIST));
		System.out.println(wi.getInfo(InfoTypes.COMMENT));
		System.out.println(wi.isIVRFormat());
		
		wi = new WavInfo();
		wi.setPath("C:/test.wav");
		boolean readOK = wi.read();
		if(readOK) {
			System.out.println(wi.getSummary());
			System.out.println(wi.getInfo(InfoTypes.ARTIST));
			System.out.println(wi.getInfo(InfoTypes.COMMENT));
			System.out.println(wi.isIVRFormat());
		}
	}
}