com.frinika.audio.toot
Class AudioPeakMonitor

java.lang.Object
  extended by com.frinika.audio.toot.AudioPeakMonitor
All Implemented Interfaces:
uk.org.toot.audio.core.AudioProcess

public class AudioPeakMonitor
extends java.lang.Object
implements uk.org.toot.audio.core.AudioProcess

A simple AudioProcess that looks for the peak value. It is reset when yoiu call getPeak()

Author:
pjl

Field Summary
 
Fields inherited from interface uk.org.toot.audio.core.AudioProcess
AUDIO_DISCONNECT, AUDIO_OK
 
Constructor Summary
AudioPeakMonitor()
           
 
Method Summary
 void close()
           
 float getPeak()
           
 void open()
           
 int processAudio(uk.org.toot.audio.core.AudioBuffer buffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioPeakMonitor

public AudioPeakMonitor()
Method Detail

getPeak

public float getPeak()

open

public void open()
Specified by:
open in interface uk.org.toot.audio.core.AudioProcess

processAudio

public int processAudio(uk.org.toot.audio.core.AudioBuffer buffer)
Specified by:
processAudio in interface uk.org.toot.audio.core.AudioProcess

close

public void close()
Specified by:
close in interface uk.org.toot.audio.core.AudioProcess