C# Class javazoom.jl.decoder.Obuffer

Base Class for audio output.
Mostrar archivo Open project: RHY3756547/FreeSO Class Usage Examples

Public Methods

Method 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

Method Description
clip ( float sample ) : short

Clip Sample to 16 Bits

Method Details

append() public abstract method

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

appendSamples() public method

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

clear_buffer() public abstract method

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

close() public abstract method

public abstract close ( ) : void
return void

set_stop_flag() public abstract method

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

write_buffer() public abstract method

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