lameonj.decoder.std
Interface PCMFrame


public interface PCMFrame

This interface represents a mono/stereo PCM frame.

Each short element of the data arrays represents a PCM sample (PCM 16 bits).

If the MP3 data used to build this PCM frame is mono only the left PCM data is valid.

Note: a PCM 16 bits frame contains 1152 samples, a PCM 8 bits frame contains 576 samples.

Author:
jmarranz

Method Summary
 short[] getPCMDataLeft()
          Returns the PCM samples of the left channel.
 short[] getPCMDataRight()
          Returns the PCM samples of the right channel.
 

Method Detail

getPCMDataLeft

short[] getPCMDataLeft()
Returns the PCM samples of the left channel.

Returns:
the samples of the left channel.

getPCMDataRight

short[] getPCMDataRight()
Returns the PCM samples of the right channel.

Ignore this channel if MP3 data source is mono.

Returns:
the samples of the right channel.


Copyright © 2006-2008 Jose Maria Arranz. All Rights Reserved.