C# Class javazoom.jl.decoder.Obuffer

Base Class for audio output.
Afficher le fichier Open project: RHY3756547/FreeSO Class Usage Examples

Méthodes publiques

Méthode Description
append ( int channel, short value_Renamed ) : void

Takes a 16 Bit PCM sample.

appendSamples ( int channel, float f ) : void

Accepts 32 new PCM samples.

clear_buffer ( ) : void

Clears all data in the buffer (for seeking).

close ( ) : void
set_stop_flag ( ) : void

Notify the buffer that the user has stopped the stream.

write_buffer ( int val ) : void

Write the samples to the file or directly to the audio hardware.

Private Methods

Méthode Description
clip ( float sample ) : short

Clip Sample to 16 Bits

Method Details

append() public abstract méthode

Takes a 16 Bit PCM sample.
public abstract append ( int channel, short value_Renamed ) : void
channel int
value_Renamed short
Résultat void

appendSamples() public méthode

Accepts 32 new PCM samples.
public appendSamples ( int channel, float f ) : void
channel int
f float
Résultat void

clear_buffer() public abstract méthode

Clears all data in the buffer (for seeking).
public abstract clear_buffer ( ) : void
Résultat void

close() public abstract méthode

public abstract close ( ) : void
Résultat void

set_stop_flag() public abstract méthode

Notify the buffer that the user has stopped the stream.
public abstract set_stop_flag ( ) : void
Résultat void

write_buffer() public abstract méthode

Write the samples to the file or directly to the audio hardware.
public abstract write_buffer ( int val ) : void
val int
Résultat void