as.clynx.audio.mux.streams
Class DistanceSampleList

java.lang.Object
  extended by as.clynx.audio.mux.streams.DefaultSampleList
      extended by as.clynx.audio.mux.streams.DistanceSampleList

public class DistanceSampleList
extends DefaultSampleList

The class DistanceSampleList.java extends DefaultSampleList and adds sample values according their local position to channels.

Version:
cLynx v.1.2, JDK 6.0: 24.10.2007
Author:
Andreas Senfter - andreas@senfters.com

Constructor Summary
DistanceSampleList(PlayListProvider provider, SignalLocalizer localizer)
          Constructor
 
Method Summary
 void add(int index, java.lang.Integer value)
          adds the sample value of trackNO 'index'
 int getNormalizedSampleSum()
          must be called after the signal was added to the current channel.
 void reset()
          resets the instance
 
Methods inherited from class as.clynx.audio.mux.streams.DefaultSampleList
addEmpty, getNormalizedSampleAt, getSampleAt, getSampleSum, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistanceSampleList

public DistanceSampleList(PlayListProvider provider,
                          SignalLocalizer localizer)
Constructor

Parameters:
provider -
localizer -
Method Detail

add

public void add(int index,
                java.lang.Integer value)
Description copied from class: DefaultSampleList
adds the sample value of trackNO 'index'

Overrides:
add in class DefaultSampleList

getNormalizedSampleSum

public int getNormalizedSampleSum()
must be called after the signal was added to the current channel. currentChannel == 0: FRONTLEFT currentChannel == 1: FRONTRIGHT currentChannel == 2: REARLEFT currentChannel == 3: REARRIGHT

http://www.jsresources.org/faq_audio.html#samples_organized

Overrides:
getNormalizedSampleSum in class DefaultSampleList
Returns:
the sum of normalized sample

reset

public void reset()
resets the instance

Overrides:
reset in class DefaultSampleList