C# Class Mp3Sharp.OBuffer16BitStereo

Internal class used to queue samples that are being obtained from an Mp3 stream. This merges the old mp3stream OBuffer with the javazoom SampleBuffer code for the highest efficiency... well, not the highest possible. The highest I'm willing to sweat over. --trs This class handles stereo 16-bit data! Switch it out if you want mono or something.
Inheritance: javazoom.jl.decoder.Obuffer
Mostra file Open project: RHY3756547/FreeSO Class Usage Examples

Public Methods

Method Description
OBuffer16BitStereo ( ) : System
Read ( byte buffer_out, int offset, int count ) : int
append ( int channel, short value ) : void
appendSamples ( int channel, float f ) : void
clear_buffer ( ) : void

This implementation does not clear the buffer.

close ( ) : void
set_stop_flag ( ) : void
write_buffer ( int val ) : void

Method Details

OBuffer16BitStereo() public method

public OBuffer16BitStereo ( ) : System
return System

Read() public method

public Read ( byte buffer_out, int offset, int count ) : int
buffer_out byte
offset int
count int
return int

append() public method

public append ( int channel, short value ) : void
channel int
value short
return void

appendSamples() public method

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

clear_buffer() public method

This implementation does not clear the buffer.
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

public write_buffer ( int val ) : void
val int
return void