Commit af652f87 authored by vaclav's avatar vaclav
Browse files

- Merge branch '911-crend-binaural-external-renderer-function' of...

- Merge branch '911-crend-binaural-external-renderer-function' of https://forge.3gpp.org/rep/ivas-codec-pc/ivas-codec into 911-crend-binaural-external-renderer-function
parents 59f47252 4909c9f2
Loading
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -5374,25 +5374,15 @@ static int16_t getNumSubframesInBuffer(
    const IVAS_REND_AudioBuffer *buffer,
    const int32_t sampleRate )
{
#ifdef SPLIT_REND_WITH_HEAD_ROT
    int16_t cldfb2tdSampleFact;

    cldfb2tdSampleFact = buffer->config.is_cldfb ? 2 : 1;
#endif

#ifdef DEBUGGING
#ifdef SPLIT_REND_WITH_HEAD_ROT
    assert( buffer->config.numSamplesPerChannel % ( sampleRate / FRAMES_PER_SEC / MAX_PARAM_SPATIAL_SUBFRAMES * cldfb2tdSampleFact ) == 0 );
#else
    assert( buffer->config.numSamplesPerChannel % ( sampleRate / FRAMES_PER_SEC / MAX_PARAM_SPATIAL_SUBFRAMES ) == 0 );
#endif
#endif

#ifdef SPLIT_REND_WITH_HEAD_ROT
    return (int16_t) ( buffer->config.numSamplesPerChannel / ( sampleRate / FRAMES_PER_SEC / MAX_PARAM_SPATIAL_SUBFRAMES * cldfb2tdSampleFact ) );
#else
    return (int16_t) ( buffer->config.numSamplesPerChannel / ( sampleRate / FRAMES_PER_SEC / MAX_PARAM_SPATIAL_SUBFRAMES ) );
#endif
}
#endif