public interface InputDevice extends AudioDevice
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
default DeviceType |
getType()
Gets the device type
|
short[] |
read()
Read samples with the capacity of bufferSize calculated from AudioFormat
|
short[] |
read(int bufferSize)
Read samples with the capacity of bufferSize
|
void |
start()
Start the device
|
void |
stop()
Stop the device
|
addFilter, addFilter, close, getBufferSize, getFilters, getFormat, getName, getParams, isOpen, open, processFilters, processFilters, reload, removeFiltervoid start()
void stop()
int available()
short[] read(int bufferSize)
bufferSize - the frame sizeshort[] read()
default DeviceType getType()
AudioDevicegetType in interface AudioDevice