예제 #1
0
HRTFPanner::HRTFPanner(float sampleRate)
    : Panner(PanningModelHRTF)
    , m_sampleRate(sampleRate)
    , m_isFirstRender(true)
    , m_azimuthIndex(0)
    , m_convolverL(fftSizeForSampleRate(sampleRate))
    , m_convolverR(fftSizeForSampleRate(sampleRate))
    , m_delayLineL(MaxDelayTimeSeconds, sampleRate)
    , m_delayLineR(MaxDelayTimeSeconds, sampleRate)
{ 
}
예제 #2
0
HRTFPanner::HRTFPanner(float sampleRate)
    : Panner(PanningMode::HRTF)
    , m_sampleRate(sampleRate)
    , m_crossfadeSelection(CrossfadeSelection1)
    , m_azimuthIndex1(UninitializedAzimuth)
    , m_elevation1(0)
    , m_azimuthIndex2(UninitializedAzimuth)
    , m_elevation2(0)
    , m_crossfadeX(0)
    , m_crossfadeIncr(0)
    , m_convolverL1(fftSizeForSampleRate(sampleRate))
    , m_convolverR1(fftSizeForSampleRate(sampleRate))
    , m_convolverL2(fftSizeForSampleRate(sampleRate))
    , m_convolverR2(fftSizeForSampleRate(sampleRate))
    , m_delayLineL(MaxDelayTimeSeconds, sampleRate)
    , m_delayLineR(MaxDelayTimeSeconds, sampleRate)
    , m_tempL1(RenderingQuantum)
    , m_tempR1(RenderingQuantum)
    , m_tempL2(RenderingQuantum)
    , m_tempR2(RenderingQuantum)
{
}
예제 #3
0
HRTFPanner::HRTFPanner(float sampleRate, HRTFDatabaseLoader* databaseLoader)
    : Panner(PanningModelHRTF),
      m_databaseLoader(databaseLoader),
      m_sampleRate(sampleRate),
      m_crossfadeSelection(CrossfadeSelection1),
      m_azimuthIndex1(UninitializedAzimuth),
      m_elevation1(0),
      m_azimuthIndex2(UninitializedAzimuth),
      m_elevation2(0),
      m_crossfadeX(0),
      m_crossfadeIncr(0),
      m_convolverL1(fftSizeForSampleRate(sampleRate)),
      m_convolverR1(fftSizeForSampleRate(sampleRate)),
      m_convolverL2(fftSizeForSampleRate(sampleRate)),
      m_convolverR2(fftSizeForSampleRate(sampleRate)),
      m_delayLineL(MaxDelayTimeSeconds, sampleRate),
      m_delayLineR(MaxDelayTimeSeconds, sampleRate),
      m_tempL1(AudioUtilities::kRenderQuantumFrames),
      m_tempR1(AudioUtilities::kRenderQuantumFrames),
      m_tempL2(AudioUtilities::kRenderQuantumFrames),
      m_tempR2(AudioUtilities::kRenderQuantumFrames) {
  ASSERT(databaseLoader);
}