Interface AudioStreamListener
-
public interface AudioStreamListenerAudio stream notification interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intonData(java.nio.ByteBuffer buffer, int lenBytes)Signals that new data were captured, and provide access to it
-
-
-
Method Detail
-
onData
int onData(java.nio.ByteBuffer buffer, int lenBytes)Signals that new data were captured, and provide access to it- Parameters:
buffer- ByteBuffer which contains captured data (2 bytes per sample, mono, 48 kHz)lenBytes- length of captured data in bytes- Returns:
- returns amount of consumed bytes, it is useful statistics
-
-