org.jflac.PCMProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jflac-codec Show documentation
Show all versions of jflac-codec Show documentation
Encoder and Decoder for FLAC files including Java Sound SPI
/*
* Created on Jun 2, 2004
*
* To change the template for this generated file go to
* Window - Preferences - Java - Code Generation - Code and Comments
*/
package org.jflac;
import org.jflac.metadata.StreamInfo;
import org.jflac.util.ByteData;
/**
* PCMProcessor interface.
* This interface defines the signatures for a class to listen
* to PCM decode events.
* @author kc7bfi
*/
public interface PCMProcessor {
/**
* Called when StreamInfo read.
* @param streamInfo The FLAC stream info metadata block
*/
public void processStreamInfo(StreamInfo streamInfo);
/**
* Called when each data frame is decompressed.
* @param pcm The decompressed PCM data
*/
public void processPCM(ByteData pcm);
}