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
파일 보기 프로젝트 열기: RHY3756547/FreeSO

공개 메소드들

메소드 설명
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