| com.sun.mmedia.PCMAudioOut
PCMAudioOut | public interface PCMAudioOut (Code) | | Parent interface that should be implemented by all DataSinks.
It does not define any methods but only constants for the known
DataSink types
|
Method Summary | |
public void | close() | public int | drain() | public void | drainLoop() | public void | flush() | 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.
Parameters: sampleRate - sample rate of the outpus stream Parameters: bits - number bits per channel Parameters: channels - number of channels in the stream, e.g. | public boolean | open(int sampleRate, int bits, int channels, boolean isSigned, boolean isBigEndian) | public void | pause() | public void | resume() | public void | setMediaTime(long mediaTime) | public void | setRate(int rate) | public void | setVolume(int level) | public int | write(byte[] data, int offset, int len) |
DATASINK_DEFAULT | final public int DATASINK_DEFAULT(Code) | | Default DataSink type
|
DATASINK_EFFECTS | final public int DATASINK_EFFECTS(Code) | | Media Processor DataSink
|
DATASINK_SOUND3D | final public int DATASINK_SOUND3D(Code) | | Sound 3D DataSink type
|
close | public void close()(Code) | | |
drainLoop | public void drainLoop()(Code) | | |
flush | public void flush()(Code) | | Flashes any data buffered in the data sink buffers
|
getMediaTime | public long getMediaTime()(Code) | | |
getSamplesPlayed | public long getSamplesPlayed()(Code) | | |
getVolume | public int getVolume()(Code) | | |
open | public boolean open(int sampleRate, int bits, int channels)(Code) | | Open connection to the DataSink with the given parameters.
Parameters: sampleRate - sample rate of the outpus stream Parameters: bits - number bits per channel Parameters: channels - number of channels in the stream, e.g. 1 for mono, 2 for stereo, etc. |
open | public boolean open(int sampleRate, int bits, int channels, boolean isSigned, boolean isBigEndian)(Code) | | |
pause | public void pause()(Code) | | Pauses the data processing by the data sink
|
resume | public void resume()(Code) | | Resumes the data processing by the data sink
|
setMediaTime | public void setMediaTime(long mediaTime)(Code) | | |
setRate | public void setRate(int rate)(Code) | | |
setVolume | public void setVolume(int level)(Code) | | |
write | public int write(byte[] data, int offset, int len)(Code) | | Writes data to the data sink
|
|
|