Commit a5656a0f authored by norvell's avatar norvell
Browse files

Add explicit type cast and correct to round instead of floor operation

parent 54a7e0da
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4675,7 +4675,7 @@ static ivas_error renderIsmToBinaural(
    push_wmops( "renderIsmToBinaural" );
#ifdef FIX_488_SYNC_DELAY
    /* Metadata Delay to sync with audio delay converted from ms to 5ms (1000/50/4) subframe index */
    ism_md_subframe_update_ext = floor( ismInput->ism_md_subframe_update_ext / ( 1000 / FRAMES_PER_SEC / MAX_PARAM_SPATIAL_SUBFRAMES ) );
    ism_md_subframe_update_ext = (int16_t) round( ismInput->ism_md_subframe_update_ext / ( 1000 / FRAMES_PER_SEC / MAX_PARAM_SPATIAL_SUBFRAMES ) );
#endif
    copyBufferTo2dArray( ismInput->base.inputBuffer, tmpTDRendBuffer );

@@ -4856,7 +4856,7 @@ static ivas_error renderIsmToBinauralReverb(

#ifdef FIX_488_SYNC_DELAY
    /* Metadata Delay to sync with audio delay converted from ms to 5ms (1000/50/4) subframe index */
    ism_md_subframe_update_ext = floor( ismInput->ism_md_subframe_update_ext / ( 1000 / FRAMES_PER_SEC / MAX_PARAM_SPATIAL_SUBFRAMES ) );
    ism_md_subframe_update_ext = (int16_t) round( ismInput->ism_md_subframe_update_ext / ( 1000 / FRAMES_PER_SEC / MAX_PARAM_SPATIAL_SUBFRAMES ) );
#endif
    copyBufferTo2dArray( ismInput->base.inputBuffer, tmpRendBuffer );