C# Класс javazoom.jl.player.AudioDeviceBase

The AudioDeviceBase class provides a simple thread-safe implementation of the AudioDevice interface. Template methods are provided for subclasses to override and in doing so provide the implementation for the main operations of the AudioDevice interface. @since 0.0.8
Наследование: AudioDevice
Показать файл Открыть проект

Открытые методы

Метод Описание
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 ( Decoder decoder ) : void

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.

Описание методов

close() публичный Метод

Closes this audio device. If the device is currently playing audio, playback is stopped immediately without flushing any buffered audio data.
public close ( ) : void
Результат void

closeImpl() защищенный Метод

Template method to provide the implementation for closing the audio device.
protected closeImpl ( ) : void
Результат void

flush() публичный Метод

Waits for any buffered audio samples to be played by the audio device. This method should only be called prior to closing the device.
public flush ( ) : void
Результат void

flushImpl() защищенный Метод

Template method to provide the implementation for flushing any buffered audio data.
protected flushImpl ( ) : void
Результат void

open() публичный Метод

Opens this audio device.
public open ( Decoder decoder ) : void
decoder javazoom.jl.decoder.Decoder
Результат void

openImpl() защищенный Метод

Template method to provide the implementation for the opening of the audio device.
protected openImpl ( ) : void
Результат void

write() публичный Метод

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.
public write ( short samples, int offs, int len ) : void
samples short
offs int
len int
Результат void

writeImpl() защищенный Метод

Template method to provide the implementation for writing audio samples to the audio device.
protected writeImpl ( short samples, int offs, int len ) : void
samples short
offs int
len int
Результат void