Метод | Описание | |
---|---|---|
close ( ) : void |
Closes this audio device. If the device is currently playing audio, playback is stopped immediately without flushing any buffered audio data.
|
|
flush ( ) : void |
Waits for any buffered audio samples to be played by the audio device. This method should only be called prior to closing the device.
|
|
open ( |
Opens this audio device.
|
|
write ( short samples, int offs, int len ) : void |
Writes audio data to this audio device. Audio data is assumed to be in the output format of the decoder. This method may return before the data has actually been sounded by the device if the device buffers audio samples.
|
Метод | Описание | |
---|---|---|
closeImpl ( ) : void |
Template method to provide the implementation for closing the audio device.
|
|
flushImpl ( ) : void |
Template method to provide the implementation for flushing any buffered audio data.
|
|
openImpl ( ) : void |
Template method to provide the implementation for the opening of the audio device.
|
|
writeImpl ( short samples, int offs, int len ) : void |
Template method to provide the implementation for writing audio samples to the audio device.
|
public open ( |
||
decoder | ||
Результат | void |
public write ( short samples, int offs, int len ) : void | ||
samples | short | |
offs | int | |
len | int | |
Результат | void |
protected writeImpl ( short samples, int offs, int len ) : void | ||
samples | short | |
offs | int | |
len | int | |
Результат | void |