C# Class javazoom.jl.decoder.SampleBuffer

The SampleBuffer class implements an output buffer that provides storage for a fixed size block of samples.
Inheritance: Obuffer
Mostra file Open project: RHY3756547/FreeSO

Public Methods

Method Description
SampleBuffer ( int sample_frequency, int number_of_channels ) : System

Constructor

append ( int channel, short value_Renamed ) : void

Takes a 16 Bit PCM sample.

appendSamples ( int channel, float f ) : void
clear_buffer ( ) : void

*

close ( ) : void
set_stop_flag ( ) : void

*

write_buffer ( int val ) : void

Write the samples to the file (Random Acces).

Method Details

SampleBuffer() public method

Constructor
public SampleBuffer ( int sample_frequency, int number_of_channels ) : System
sample_frequency int
number_of_channels int
return System

append() public method

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

appendSamples() public method

public appendSamples ( int channel, float f ) : void
channel int
f float
return void

clear_buffer() public method

*
public clear_buffer ( ) : void
return void

close() public method

public close ( ) : void
return void

set_stop_flag() public method

*
public set_stop_flag ( ) : void
return void

write_buffer() public method

Write the samples to the file (Random Acces).
public write_buffer ( int val ) : void
val int
return void