jass.generators
Class HRTF

java.lang.Object
  extended by jass.generators.HRTF

public class HRTF
extends java.lang.Object

class for using CIPIC-type HRTF files


Constructor Summary
HRTF(int windowlength, java.lang.String filename)
           
 
Method Summary
 void fillHRTF(java.io.File file)
           
 double[] getNL(int naz, int nel, boolean r)
           
 void loadHRTFFromCIPIC(java.lang.String filename)
           
 void process(float[] buf, float[] outL, float[] outR)
          spatialize a mono audio buffer at this point, the HRTF has already been prepared
 void separate(float[] inputBuf, int start, int end, double[] outLeft, double[] outRight)
          right now, this just copies
 void set(int naz, int nel, int nt, float val, boolean r)
           
 void setLocation(PositionData p)
           
 void startSpatial()
           
 void stopSpatial()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HRTF

public HRTF(int windowlength,
            java.lang.String filename)
Method Detail

set

public void set(int naz,
                int nel,
                int nt,
                float val,
                boolean r)

getNL

public double[] getNL(int naz,
                      int nel,
                      boolean r)

loadHRTFFromCIPIC

public void loadHRTFFromCIPIC(java.lang.String filename)

fillHRTF

public void fillHRTF(java.io.File file)

startSpatial

public void startSpatial()

stopSpatial

public void stopSpatial()

process

public void process(float[] buf,
                    float[] outL,
                    float[] outR)
spatialize a mono audio buffer at this point, the HRTF has already been prepared

Parameters:
buf - mono audio buffer to process.
outL - left channel output
outR - right channel output

separate

public void separate(float[] inputBuf,
                     int start,
                     int end,
                     double[] outLeft,
                     double[] outRight)
right now, this just copies


setLocation

public void setLocation(PositionData p)