BasicAudioOutpublic interface BasicAudioOut Parent interface that should be implemented by all DataSinks.
It does not define any methods but only constants for the known
DataSink types |
Fields Summary |
---|
public final int | DATASINK_DEFAULTDefault DataSink type | public final int | DATASINK_SOUND3DSound 3D DataSink type | public final int | DATASINK_EFFECTSMedia Processor DataSink |
Methods Summary |
---|
public void | close()
| public int | drain()
| public void | drainLoop()
| public void | flush()Flashes any data buffered in the data sink buffers
| public long | getMediaTime()
| public long | getSamplesPlayed()
| public int | getVolume()
| public boolean | open(int sampleRate, int bits, int channels)Open connection to the DataSink with the given parameters.
| public boolean | open(int sampleRate, int bits, int channels, boolean isSigned, boolean isBigEndian)
| public void | pause()Pauses the data processing by the data sink
| public void | resume()Resumes the data processing by the data sink
| public void | setMediaTime(long mediaTime)
| public void | setRate(int rate)
| public void | setVolume(int level)
| public int | write(byte[] data, int offset, int len)Writes data to the data sink
|
|