public class DetermineDurationProcessor extends java.lang.Object implements AudioProcessor
Constructor and Description |
---|
DetermineDurationProcessor() |
Modifier and Type | Method and Description |
---|---|
double |
getDurationInSamples() |
double |
getDurationInSeconds() |
boolean |
process(AudioEvent audioEvent)
Process the audio event.
|
void |
processingFinished()
Notify the AudioProcessor that no more data is available and processing
has finished.
|
public boolean process(AudioEvent audioEvent)
AudioProcessor
process
in interface AudioProcessor
audioEvent
- The audio event that contains audio data.public double getDurationInSeconds()
public double getDurationInSamples()
public void processingFinished()
AudioProcessor
processingFinished
in interface AudioProcessor